Graal Forums  

Go Back   Graal Forums > Graal V6 forums > Questions about V6
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 08-20-2007, 04:55 AM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
Flash Impovements? How?

Hmm, is it me, or did whoever made the newsletter make a mistake?

Who KNOWS about how to even script flash into the game.

*Waits for reply*
Exactly, no one.

Stefan, how about telling us how to script it in, commands ect.?
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.
Reply With Quote
  #2  
Old 08-20-2007, 10:01 AM
Chompy Chompy is offline
»\(║_o)/»
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Uhm, it's actually pretty easy to make it, it's explained pretty well on the wiki, but as you stated in another thread, you don't like the wiki

PHP Code:
with(findimg(200)) {
  
flashfile "flash.swf";
  
1015;
  
layer 4;
  
//wee, can play around with the flash too :o
  
flash.getLayer(0).alpha 0.99;

You can use other method as well as GuiShowImgCtrl or GuiFlash

PHP Code:
new GuiFlash("Flash_file") {
  
7;
  
24;
  
moviefile "flash.swf";
  
loopmovie false;
  
requiresactivex false;
  
tryactivex true;

  
playmovie();

And, there is also threads in the scripting forums
__________________
Reply With Quote
  #3  
Old 08-20-2007, 04:19 PM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
Kay xD

It's not that I don't like the Wiki it's just confusing to me.

M!ke and I wanted to know and I didn't think there were threads since it's v5 improvements, so... yeah. xD thanks

PHP Code:
new GuiFlash("Flash_file") {
[
stuff that I understand]

"Flash_file" is that meaning that the following is for a flashfile or the filename goes there?
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.

Last edited by Switch; 08-20-2007 at 04:33 PM..
Reply With Quote
  #4  
Old 08-20-2007, 05:03 PM
Chompy Chompy is offline
»\(║_o)/»
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by Switch View Post
PHP Code:
new GuiFlash("Flash_file") {
[
stuff that I understand]

"Flash_file" is that meaning that the following is for a flashfile or the filename goes there?
No, that's a name I gave the control
__________________
Reply With Quote
  #5  
Old 08-20-2007, 05:09 PM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
Ohh so I can name it anything like "Flash1" then name another "Flash2" and so on?
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.
Reply With Quote
  #6  
Old 08-20-2007, 05:15 PM
Chompy Chompy is offline
»\(║_o)/»
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Yeah
__________________
Reply With Quote
  #7  
Old 08-20-2007, 06:03 PM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
thanks chompinator
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.
Reply With Quote
  #8  
Old 08-20-2007, 09:30 PM
Cherrykao Cherrykao is offline
Banned
Join Date: Apr 2007
Posts: 37
Cherrykao is on a distinguished road
what i want to know is if it's possible to communicate like send and recieve variables to and from the graal client into flash and vice versa?
Reply With Quote
  #9  
Old 08-20-2007, 10:27 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
There is
guicontrol.setFlashVariable(varname,value)

And flash games can do fscommand("event",commaparams) which is invoking an event "onEvent", e.g.
function MyFlashGame.onEvent(params) { ... }
commaparams is a string, parameters connected with comma, e.g. "1,2,3"
Reply With Quote
  #10  
Old 08-20-2007, 10:30 PM
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
Quote:
Originally Posted by Switch View Post
It's not that I don't like the Wiki it's just confusing to me.
When the wiki is back up, I'm gonna work on making it a little more user friendly. Any input would be of help
__________________
Do it with a DON!
Reply With Quote
  #11  
Old 08-24-2007, 03:19 PM
Cherrykao Cherrykao is offline
Banned
Join Date: Apr 2007
Posts: 37
Cherrykao is on a distinguished road
Quote:
Originally Posted by Stefan View Post
There is
guicontrol.setFlashVariable(varname,value)

And flash games can do fscommand("event",commaparams) which is invoking an event "onEvent", e.g.
function MyFlashGame.onEvent(params) { ... }
commaparams is a string, parameters connected with comma, e.g. "1,2,3"
excellent! As far as i know Flash won't work for users on Macintosh. Is there a graal script function to detect the presence of a Flash player on the user's machine? Also when getting the platform a user is using, i know "win" is for windows. I don't have Linux or Macintosh, so i don't know if the output when getting the platform from a user on Linux is just "lin" and Macintosh just "mac"?? Thanks.
Reply With Quote
  #12  
Old 08-24-2007, 03:29 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Cherrykao View Post
excellent! As far as i know Flash won't work for users on Macintosh. Is there a graal script function to detect the presence of a Flash player on the user's machine? Also when getting the platform a user is using, i know "win" is for windows. I don't have Linux or Macintosh, so i don't know if the output when getting the platform from a user on Linux is just "lin" and Macintosh just "mac"?? Thanks.
PHP Code:
if (player.platform in {"win""linux"}) 
... for if the player is using Windows or Linux.
PHP Code:
if (player.platform == "mac"
... for if the player is using a Mac.
__________________
Skyld
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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:17 AM.


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