I have found a particularly nasty scripting error, well actually a bug, that I thought A) people should be made aware of if they didn’t already know if it, and B) to hilite this problem to Macromedia so that my bug submission doesn’t hide in their QA department (who missed this glaring error with their incompitence).
When using LoadMovieNum to load a SWF file that contains a MediaPlayBack component from a SWF file that is already using a MediaPlayBack component, Flash will hang/halt for a period of time before finally reporting “A script in this movie is causing Macromedia Flash Player 7 to run slowly. If it continues to run your computer may become unresponsive. Do you want to abort the script (Yes/No)”.
This error only happens when you try to load a SWF file that contains a MediaPlayBack component using LoadMovieNum from a SWF file that already uses the MediaPlayBack component. If you load the two SWFs seperately of one another they will play back correctly (aka no script error message). This error is duplicatable on your machine by simply running the SWF file and is also duplicatable in your browser as well.
There are essentially two solutions that you are left with here:
- Dynamicly load all of the FLV files you need to use back onto a MediaPlayBack controller on the Root.
- Remove any instance of the MediaPlayBack component from the root. This will allow SWF files loaded through LoadMovieNum to play correctly and not give you a scripting error.
LFoz