PDA

View Full Version : Flash passing variables to a swf file HELP!



tantanix
February 4th, 2008, 09:21 PM
I apologize if this topic has already been discussed in the forums. I don't have time to read all of them.

I'm new to this forum and this is my problem.

I have a Main.fla file that will load a swf file. How can I pass a variable to the swf file?

Before there was no Main.fla file, only the swf file and it's being passed in a variable from the asp page.


var Page:String = root.loaderInfo.parameters.Page;this is the code i used in getting the variables being passed by the page.

but now im including a Main.fla file so the asp page is not the container of my swf file anymore.

help.

tantanix
February 4th, 2008, 10:21 PM
Nevermind...i got it to work.

Thanks to this link:
http://www.flashandmath.com/intermediate/externalclips/ext_clip1.html

It gave me an idea by initialising the variables in the time frame then using the Main.fla to go to that specific frame depending on which variable being passed from the asp page.