Link to home
Start Free TrialLog in
Avatar of kris_mcl
kris_mcl

asked on

loadMovie() - can I pass a parameter to the new movie?

Hello,

When loading a movie with loadMovie, is it possible to pass a parameter to that movie?

I have a _global variable called 'splashPic' wih a value of 'home-wide02.jpg'. I want to pass this variable to the movie that is being loaded. Thinking it would be similar to passing a parameter from an HTML page, here is what I tried:

----
on(release){
     _root.loadMovie("bio02.swf?whichSplash="+_global.splashPic);
}
----

This returns:
Error opening URL "file:///G|/freestyle/web/bio02.swf?whichSplash=images/home-wide02.jpg"

The loadMovie works fine on its own, but it doesn't seem to recognize that the parameter is a, well.. a parameter!
Any ideas? I've searched & searched the web, but haven't found any info on this. I'm sure I'm not the only person who's ever wanted to do this, though.

Thanks,
//km

ASKER CERTIFIED SOLUTION
Avatar of Zeffer
Zeffer
Flag of New Zealand 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