Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 219
  • Last Modified:

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

0
kris_mcl
Asked:
kris_mcl
1 Solution
 
ZefferCommented:
there are issues with passing variables on a local machine with early player versions..
http://www.macromedia.com/support/flash/ts/documents/local_query.htm
go down to No.2 ..also gives examples of syntax..etc

Z

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now