Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   streaming flash (https://forums.graalonline.com/forums/showthread.php?t=80490)

[email protected] 07-14-2008 11:24 PM

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


Admins 07-15-2008 12:21 AM

Shouldn't it be moviename = url ?

zokemon 07-15-2008 12:42 AM

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?


All times are GMT +2. The time now is 09:35 AM.

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