| Previous | Next | |
Windows: Flash 8 or 9 AS2.0 SWF + mProjector
3.0; Windows 98/ME/NT Support: Flash 7 SWF + mProjector
2.0 build 'db';
Macintosh: Not Yet Available
mApplication.loadMovieInSandbox(filename:String, target:Object) : Voidfilename - The absolute or relative URL of the SWF to be loaded. A relative path must be relative to the SWF file at level 0. Absolute URLs must include the protocol reference, such as http:// or file:///.
target - A reference to a movie clip object or a string representing the path to a target movie clip. The target movie clip is replaced by the loaded SWF file or image.
Nothing.
Method; Loads SWF into movie clip without access to the mProjector commands or the main swfs globals.
This code loads our RedBall.swf into it's preview window. The RedBall.swf contains mWindow.setPosition() commands that would normally bounce the application about the screen but because the main SWF uses mApplication.loadMovieInSandbox() mProjector commands are not available to the RedBall.swf and the application remains stationary.
mApplication.loadMovieInSandbox("RedBall.swf", previewWindow);| Questions or Feedback? | Previous | Next |