Skip to main content
Inspiring
July 26, 2007
Answered

Passing variables with loadMovie

  • July 26, 2007
  • 1 reply
  • 349 views
I'm new to ActionScripting. I want to pass the value of a variable from one swf file to another. I have a tutorial book that states I can do this with the loadMovie action when I load the second movie; however, it doesn't give me any guidance in how to use loadMovie to pass the variable value. Any suggestions would be greatly appreciated. Ray

This topic has been closed for replies.
Correct answer Newsgroup_User
loadMovie is puny and weak - use the MovieClipLoader class. Then you can use
the onLoadInit method - when it fires you have a reference to the loaded
target and can set a variable within it, call a function within it, etc...
Look in the Help for MovieClipLoader - and specifically the onLoadInit
method

--
Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/


1 reply

Newsgroup_UserCorrect answer
Inspiring
July 26, 2007
loadMovie is puny and weak - use the MovieClipLoader class. Then you can use
the onLoadInit method - when it fires you have a reference to the loaded
target and can set a variable within it, call a function within it, etc...
Look in the Help for MovieClipLoader - and specifically the onLoadInit
method

--
Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/


RJWAuthor
Inspiring
July 27, 2007
Thank you Dave. I passed a variable!