This content has been marked as final. Show 3 replies
Your best bet is to use the MovieClipLoader class, with a listener.
The listener receives a reference to the loaded movieclip in its onLoadInit handler. This handler is triggered when the loaded swf is capable of being resized etc...
Take a look at the examples in the MovieClipLoader class in the help files or the livedocs online. Give it a try and then post back with questions or parts of your code you can't get working if you have difficulty making it work.
When you choose reply on this forum you will have an extra button called "attach code" ... If you ever have difficulty with parts of your code its a good idea to show small parts here. But don't put it directly in your reply... always use the attach Code button for your code. Otherwise it can mess up the html formatting.
Thanks for your reply, but I am not experienced enough to understand this reply (loadmovie class). Is there an easy script I can use (ie width and height resize) to resize the movie being loaded into the empty movieclip so that it is smaller than the main movie into which it is being loaded?
You could use a Loader Component. I'm pretty sure that gives you the option to scale the loaded content automatically. drag one from your components panel and change the scaleContent setting in the parameters tab. You will need to read up on the Loader class if you want to set its properties at runtime from actionscript (after giving your component an instance name).