Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-14-2008, 11:24 PM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
streaming flash

hmm, not too sure how i would stream flash

here's what i have

HTML Code:
//#CLIENTSIDE
function onCreated() {
  temp.url = requestURL("http://www.quantifiedmarketing.com/swf/design_ad.swf");
  this.catchEvent(url, "onReceiveData", "onData");
  
  new GuiWindowCtrl("Flash_Window") { 
    text = "Flash"; 
    position = {30, 30};
    extent = {300, 300};
    canmaximize = canminimize = false;
     
    new GuiFlash("Flash") { 
      downloadwebfiles = true;
      requiresactivex = true;
      position = {5, 5};
      extent = {290, 290};
      moviename = "copter.swf"; 
      playmovie(); 
    } 
  }
  
}  

function onData(temp.obj) {
  with(Flash) {
    moviename = obj.fulldata;
    playmovie();
  }
}
obj returns
HTML Code:
address,contentlanguage,contentlength,contenttype,
data,downloadcomplete,file,fulldata,initialized,ispaused,
joinedclasses,lastmodified,maxlooplimit,name,port,returncode,
returnmessage,scripterrors,scriptlogmissingfunctions,server,
timeout,url
Reply With Quote
  #2  
Old 07-15-2008, 12:21 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Shouldn't it be moviename = url ?
Reply With Quote
  #3  
Old 07-15-2008, 12:42 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
I would advise naming your objects simple things such as "Flash" that could be names of other variables or objects built-in to Graal (or found on the login server).

Also, "copter.swf"? lol?
__________________
Do it with a DON!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:58 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.