How to Load an External Flash Movie
When you are working in Flash and you become more advanced with the movies you create, you may sometimes find that your .swf movies are becoming very large, which makes it difficult for them to load quickly in web pages. One solution to large Flash files is to break up your movie into smaller segments--other .swf files that will be loaded into the main movie at runtime. This technique is accomplished using ActionScript and can cut the size of your Flash movie significantly.
Instructions
-
-
1
Select the "Rectangle Tool" from the toolbar, and draw a rectangle on the stage of your main movie where you will want your imported .swf to appear. The rectangle should have no fill and be large enough to contain your imported movie. Don't worry about the stroke color; it will not be visible when the movie is imported.
-
2
Press "F8" on your keyboard with the Rectangle Tool selected to turn it into a movieclip symbol.
-
-
3
Give it any name you want, and press "OK."
-
4
Give your rectangle an instance name of "myContainer" in the Properties Inspector tab.
-
5
Select the keyframe in the timeline where your container is, and press "F9" to open the ActionScript panel.
-
6
Paste the following code, replacing the text in parenthesis with the filename of the external movie that you want to load: myContainer.loadMovie("YourMovieHere.swf")
-
7
Press "Ctrl" and "Enter" simultaneously to test your movie.
-
8
Adjust the movieclip container size and position as necessary.
-
1