PDA

View Full Version : Pass Variable to Flash from HTML


dcmike27
08-07-2002, 12:21 AM
I'm struggling with what should be a really simple concept. I've checked the tutorials, forums and STILL can't make it work. Any help is greatly appreciated!

I simply want the html that loads my Flash movie to pass a variable and its value to the Flash movie.

Say I have this line in the HTML:

<param name="movie" value="myMovie.swf?test=howdy">

What ActionScript goes in the myMovie.swf that makes the variable test a global variable I can use throughout the movie? I've tried assigning the variable to a dynamic test field, but it always shows up blank in the browser.

Thanks in advance for taking pity on this apparent moron ;)

..dcmike27

Billy T
08-07-2002, 01:41 AM
did you read this? - http://www.actionscripts.org/tutorials/intermediate/passing_variables_around/index.shtml