

displacing the 1st SWF from position 1 to 2 in the display list the 1st by using addChildAt(my2ndLoader, 1) Var url2:URLRequest = new URLRequest("ExternalSWF2.swf") ĪddChild(my2ndLoader) // optionally, you could put the 2nd SWF beneath (optional) load a second external SWF file MyLoader.y = 175 // move the loaded SWF 175 pixels down from the top MyLoader.x = 10 // move the loaded SWF 10 pixels to the right (from the left edge) Var url:URLRequest = new URLRequest("ExternalSWF.swf") // in this case both SWFs are in the same folderĪddChild(myLoader) // add that instance to the display list, adding it to the Stage at 0,0 Var myLoader:Loader = new Loader() // create a new instance of the Loader class The ActionScript 2.0 MovieClipLoader class.To load an external SWF file from within another SWF file, use one of the following: You can also load image files, such as JPG, PNG, GIF. The difference is that the content exists outside the main SWF file.
#Baka loader 2 movie
Placing content in a separate SWF file is similar to placing content in its own movie clip symbol.

Many SWF files can be combined to create the interface. A complex user interface can be created that does not rely on a single SWF file.It gives you greater flexibility about the organization of your project assets.The pages don't have the pause or refresh associated with reloading. Multiple SWF files can be played in succession without making the browser load another HTML page.It lets you load only the content you need based on what the user is doing in your movie.Smaller files load faster, and manage memory more efficiently. Because a project can be broken up into multiple movies, the individual SWF files are smaller in size.There are several reasons to load external SWF files: From within a Flash SWF file, you can load other external SWF files as assets.
