What happened to my variables and why aren my functions working (e.g. onLoad) after loadMovie?
The Quick: When new content (swf or jpg) is loaded into a level or movie clip using loadMovie(), the level or movie clip is erased of all definitions–all functions and variables. The Details: Basically what happens is Flash completely clears or replaces an existing level or movie clip in order to make way for that which is being loaded as a result of the loadMovie command. Movie clips will actually retain their size and location and primary properties while levels are completely replaced and set back to their default location (0,0). In either case, anything you define in a level or movie clip will be deleted thanks to loadMovie. This includes any event handlers like onRelease which you’ve added to interact with the soon to be loaded content. The only exception to this is script placed directly on a movie clip in the form of on() or onClipEvent()events (applicable to movie clips only) as they inherent of the actual movie clip symbol and not something Flash interprets as an assignment w
Related Questions
- We re working on a home with a very complicated roof structure. What can I do in the design stage to be sure the roof functions as well as possible?
- PhotoKit Sharpener was correctly installed and working, but now it comes up with a demo dialog, what happened?
- I can no longer use certain functions following an automatic update. What happened?