Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-09-2006, 03:44 AM
gamer4lifebitach gamer4lifebitach is offline
Scripter
gamer4lifebitach's Avatar
Join Date: Oct 2005
Location: Illionis, USA
Posts: 25
gamer4lifebitach is on a distinguished road
Send a message via AIM to gamer4lifebitach Send a message via MSN to gamer4lifebitach
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();
    }
  }

__________________

~Contact Information~
Aim: Grind64RyGuy
Email: [email protected]
Client Status:
Reply With Quote
  #2  
Old 08-09-2006, 10:09 AM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
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.
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote
  #3  
Old 08-09-2006, 12:01 PM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
loadmovie( "path/file.swf" , bool errorlogging ? , float alpha );

Something like that.
__________________
◕‿‿◕ · pfa · check yer syntax! · src

Killa Be: when i got that locker in 6th grade the only thing in it was a picture of a midget useing a firehose :/
Reply With Quote
  #4  
Old 08-09-2006, 01:20 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
GE_Game.loadmovie(this.playmovie, true, 4);

I use that, but you CANT stream flash (either that - or my server can't x.x)
Reply With Quote
  #5  
Old 08-09-2006, 07:00 PM
killerogue killerogue is offline
Registered Omega
killerogue's Avatar
Join Date: Apr 2006
Location: United States
Posts: 1,920
killerogue is on a distinguished road
Send a message via AIM to killerogue Send a message via MSN to killerogue
Possibly a profile for it? I dunno.
__________________


REMEMBER, IF YOU REP ME, LEAVE A NAME!

Quote:
Originally Posted by haunter View Post
Graal admins don't die. They go to hell and regroup.
Quote:
Originally Posted by Inverness View Post
Without scripters, your graphics and levels wouldn't do anything but sit there and look pretty.
Reply With Quote
  #6  
Old 08-09-2006, 09:55 PM
gamer4lifebitach gamer4lifebitach is offline
Scripter
gamer4lifebitach's Avatar
Join Date: Oct 2005
Location: Illionis, USA
Posts: 25
gamer4lifebitach is on a distinguished road
Send a message via AIM to gamer4lifebitach Send a message via MSN to gamer4lifebitach
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...
__________________

~Contact Information~
Aim: Grind64RyGuy
Email: [email protected]
Client Status:
Reply With Quote
  #7  
Old 08-09-2006, 10:00 PM
gamer4lifebitach gamer4lifebitach is offline
Scripter
gamer4lifebitach's Avatar
Join Date: Oct 2005
Location: Illionis, USA
Posts: 25
gamer4lifebitach is on a distinguished road
Send a message via AIM to gamer4lifebitach Send a message via MSN to gamer4lifebitach
How you give a flash Sound???

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

~Contact Information~
Aim: Grind64RyGuy
Email: [email protected]
Client Status:
Reply With Quote
  #8  
Old 08-26-2006, 03:35 PM
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
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.
Reply With Quote
Reply


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 04:50 PM.


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