Skip to main content
Inspiring
April 22, 2006
Question

passing parameters between SWF with loadMovieNum()

  • April 22, 2006
  • 1 reply
  • 257 views
When calling one swf from another using loadMovieNum("name.swf",0) is it
possible to pass parameters to the second SWF like it is done in
HTML/JavaScript or using any other method?


This topic has been closed for replies.

1 reply

Inspiring
April 22, 2006
I think it's not possible if you load into _level0, because that replaces everything in the player. If you load into a higher _level, it should be possible, but I guess you have to wait until the movie is loaded before you can set variables. Use preloader code or the MovieClipLoader class, and set the variables when loading finished, e.g. _levelX.myVar = 42.

cheers,
blemmo