$_GET in Flash? [Solved!]

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

$_GET in Flash? [Solved!]

Post by Zoxive »

Well i've been searching for about 30 mins now, found some programs that will put php info into flash, but i was wondering it i could just easily, do something like menu.swf?id=1, so then in flash i could detect that 1, in php it would be $_GET...

But i dont know how/if i can do it in flash..

-NSF
Last edited by Zoxive on Tue Nov 01, 2005 8:42 pm, edited 1 time in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Flash (Actionscripting) questions aren't PHP - Code :P
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

Post by Zoxive »

feyd wrote:Flash (Actionscripting) questions aren't PHP - Code :P
I almost put it in Miscellaneous, but...... i didn't... :oops:

I also figure it out, its very simple and easy....
My example, is menu.swf?var=1

Then in Flash, on the main timeline, i could just link to that variable.

Ex. _root.textz = varz;

Then "textx" would show 1.


-NSF
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post by n00b Saibot »

you can also set the variable using Javascript :arrow:

Code: Select all

<script>
movie = document.getElementById('<id of the flash movie>');
movie.SetVariable('var name', 'value');
</script>
8)
Post Reply