Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   GS2 Flash Help (https://forums.graalonline.com/forums/showthread.php?t=67962)

gamer4lifebitach 08-09-2006 03:44 AM

GS2 Flash Help
 
Ok ya i've seen people using Flash's in graal (pretty cool), I got idea's that would be good for my server that i work for but i dont know how to load a flash than have it play...

So PLEASE help and tell me how to put the load command in this script below.

PHP Code:

//#CLIENTSIDE
function onCreated(){
  new 
GuiWindowCtrl("Flash_Window") {
  }
  
Flash_Window.destroy();
}
function 
onWeaponfired(){
  new 
GuiWindowCtrl("Flash_Window") {
    
text "Flash";
    
x=0;
    
y=0;
    
width 320;
    
height 320;
    
destroyonhide true;
    
canresize false;
    
canclose true;
    
canminimize true;
    
canmaximize false;
    new 
GuiFlash("Flash") {
      
loadmovie("http://70.85.74.174/albino_flash04/myhero([url]www.albinoblacksheep.com[/url]).swf",500,500);
      
playmovie();
    }
  }



ForgottenLegacy 08-09-2006 10:09 AM

You need to set the x, y, width, and height, as with all other guis. That's why it's not working.

However, if that doesn't fix it, then post a reply and I'll research it. I did get it working before when I was into making flash stuff.

Tolnaftate2004 08-09-2006 12:01 PM

loadmovie( "path/file.swf" , bool errorlogging ? , float alpha );

Something like that.

KuJi 08-09-2006 01:20 PM

GE_Game.loadmovie(this.playmovie, true, 4);

I use that, but you CANT stream flash (either that - or my server can't x.x)

killerogue 08-09-2006 07:00 PM

Possibly a profile for it? I dunno.

gamer4lifebitach 08-09-2006 09:55 PM

Ok i made edit the scrip to this below.

PHP Code:

//#CLIENTSIDE
function onCreated(){
  new 
GuiWindowCtrl("Flash_Window") {
  }
  
Flash_Window.destroy();
}
function 
onWeaponfired(){
  new 
GuiWindowCtrl("Flash_Window") {
    
text "Flash";
    
x=0;
    
y=0;
    
width 320;
    
height 320;
    
destroyonhide true;
    
canresize false;
    
canclose true;
    
canminimize true;
    
canmaximize false;
    new 
GuiFlash("Flash") {
      
25;
      
40;
      
width 265;
      
height 220;
      
moviename "copter.swf";
      
playmovie();
    }
  }


But yet it shows the flash file 'copter.swf' but its all like mest up and you can do anything in the flash game...

gamer4lifebitach 08-09-2006 10:00 PM

How you give a flash Sound???

like it has music but i cant hear it...

Admins 08-26-2006 03:35 PM

If it's a more complex flash file theny use the variables requiresactivex = true; or tryactivex = true;
Otherwise it is using the built-in flash player (based on open source) which doesn't support everything flash can do.


All times are GMT +2. The time now is 05:08 PM.

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