Tips, tricks and pitfalls...
You can use the above technique to load multiple libraries. My application for this was to load an XML file from an IIS server that instructed the main movie which libraries to load to display the correct icons for a user. The applications for this are endless.
When using this technique, be aware that the play-head of timeline on which the ActionScript resides must move in order for commands like loadMovie and attachMovie to work correctly. For example, if you call loadMovie, then loop (in a while(...) statement) until loaded and then call attachMovie all in the same frame, you often get unexpected results.
As with all flash authoring, ActionScript programming is time-based, not procedural. Always sculpt your script to work with the play-head - remember that the play-head controls the scripting, not vice-versa!
|» Level Advanced|
Rating: 9 Votes: 105
|No details avialable.|
|Download the files used in this tutorial.|
|Download (4 kb)|
|More help? Search our boards for quick answers!|