Page 1 of 1
$_GET in Flash? [Solved!]
Posted: Tue Nov 01, 2005 6:56 pm
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
Posted: Tue Nov 01, 2005 7:04 pm
by feyd
Flash (Actionscripting) questions aren't PHP - Code

Posted: Tue Nov 01, 2005 7:06 pm
by Zoxive
feyd wrote:Flash (Actionscripting) questions aren't PHP - Code

I almost put it in Miscellaneous, but...... i didn't...
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
Posted: Sat Nov 05, 2005 2:11 am
by n00b Saibot
you can also set the variable using Javascript
Code: Select all
<script>
movie = document.getElementById('<id of the flash movie>');
movie.SetVariable('var name', 'value');
</script>
