|
||||||
|
||||||
Tutorial - Preload External Flash Movies using Movie Clips

Free
Flash Tutorial
![]()
This tutorial shows you an easy way to load one Flash Movie into another. This loads the external Flash SWF Movie into a Movie Clip with the help of the Progress Bar Component. Loading a Movie into an MC means that you can address the Movie Clip in the ActionScript and change the Movie Clips properties. This MC includes the external swf file so any change that you impose on the Movie Clip also changes the external Movie nested within.
Cross Ref: There are many other Flash Pre-Loader tutorials including several which cover loading external Flash Movies and loading multiple external Flash Movies. To ensure that you are following the right tutorial for your needs, you may wish to read a brief description of each: Preloader Tutorial Listings
Example: Download
the Flash file Int 152a
Note: If you can see the Flash Movie (an animation) and not the preloader press Refresh (F5 or try Ctrl + F5) in your Browser. Once a Flash Movie has loaded the Browser may not truly refresh or re-load the Movie. Therefore if you did not see the preloader in action: Click here
Step One: Setting up the Movie
You should now see this in the Timeline:

The two layers.
Set Two: Setting up the Progress Bar



Warning: Instance Names are case sensitive.

Step Three: The Actions - Frame 1
Step Four: The Actions - Frame 2
Important: Make sure you change the name of the file to the name of your file: myMovie.swfStrange but True: It is the location of the web page and the Movie that is loading that is important not the location of this preloader Movie! If you wish to move this preloader Movie to a different folder you can. It can also be used several times on several different web pages as long as each time the web page is located in the same place as a Movie called: myMovie.swf. Each version of the Movie myMovie.swf could be a different Movie with different content!
Usually the Main Content Movie would be in the same folder as the web page. If it is not you will need to type a target path like this:
myLoader.contentPath = "images/myMovie.swf";
You may also use a full URL like this:
myLoader.contentPath = "http://www.webwasp.co.uk/images/myMovie.swf";Confused? If you get in a muddle the easiest thing is to have the Web Page, Preloader Movie and Main Movie all in the same folder.
Your Layers should now look like this:
That's it.
Why not try out webwasp's new community. Meet new people, find friends in your area: Webwasp Mates & Dates
•
30498 visitors to this page since
Oct 05 •
|
|
|
All material on this site is protected under international copyright © law. DO NOT reproduce any material from this site without written permission. Please ask as permission is often granted.
|