PDA

View Full Version : GS2 Flash Help


gamer4lifebitach
08-09-2006, 04:44 AM
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.


//#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(www.albinoblacksheep.com).swf",500,500);
playmovie();
}
}
}

ForgottenLegacy
08-09-2006, 11: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, 01:01 PM
loadmovie( "path/file.swf" , bool errorlogging ? , float alpha );

Something like that.

KuJi
08-09-2006, 02: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, 08:00 PM
Possibly a profile for it? I dunno.

gamer4lifebitach
08-09-2006, 10:55 PM
Ok i made edit the scrip to this below.


//#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") {
x = 25;
y = 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, 11:00 PM
How you give a flash Sound???

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

Admins
08-26-2006, 04: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.