Link to home
Start Free TrialLog in
Avatar of newstandard
newstandard

asked on

Pass variables to external SWF file

We are designing a shell, which will be used to play numerous external swf files by choosing them from a list. We will have an online version, and a version that the user installs to their computer. The Shell will eventually be an exe file, but the movies it plays will still be swfs. I want to put a line of code into each SWF to make sure that it was being played through our shell and I was hoping that the shell could set a security variable to true, and then the SWF checks to make sire its true, then play the movie, otherwise unload it. I know you can normally pass variables my using something like myMovie.swf?var1=true, but that only seems to work in the browser. Is there anyway to do this from within flash when loading a movie?

If not, is there any other way to protect the individual SWF files, and make sure they can only be played through our shell?
ASKER CERTIFIED SOLUTION
Avatar of CyanBlue
CyanBlue
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of newstandard
newstandard

ASKER

Wow, for some reason. I didn't think it was that simple. I thought that the swf was not able to read variables in the parents shell, and that the shell somehow had to pass the variable to the swf. That works, thank you very much!