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 ?whichSpla sh="+_glob al.splashP ic);
}
----
This returns:
Error opening URL "file:///G|/freestyle/web/ bio02.swf? whichSplas h=images/h ome-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
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
}
----
This returns:
Error opening URL "file:///G|/freestyle/web/
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.