Learning Flash: Preloading External Movies

Home Food Mates • Members Tutorials Forum Buy Templates Contact Us 

 


Flash Tutorials

   

Tutorial - Preloading External Flash Movies

Free Flash Tutorial


Step 6    <<   Previous      Intro   1   2   3   4   5   6   7   8   9     Next   >>       >>   Webwasp Mates

 

Step Six: Creating the Timer Movie Clip

This Movie Clip has a small amount of ActionScript that controls the loading of the first external MC. Subsequently MCs are loaded when the user clicks on one of the buttons.

  1. Go to: Insert > New Symbol (Ctrl F8)
  2. Give it the Name: Timer
  3. For Behavior select: Movie Clip



  4. Click: OK
  5. On Frame 1 of the Timeline add this code:
  6. // This is how we automatically load the swf when the Movie loads
    loadMovie(_root.MyVariable, _root.MyExternallyLoadedSWFMovieHolder);

    //  Tell the preloader to preload the first MC

    _root.preloaderloader.gotoAndPlay(2);

    //  Stop this Movie Clip now the first MC has loaded
    stop();

  7. The Timer Movie Clip is now complete. Return to the Main Stage by clicking the Scene 1 Tab:

         

Step 6    <<   Previous      Intro   1   2   3   4   5   6   7   8   9     Next   >>       >>   Webwasp Mates


Webwasp Community: Webwasp Mates & Dates

Why not try out webwasp's new community. Meet new people, find friends in your area: Webwasp Mates & Dates

50118 visitors to this page since 6 Oct 05 •

 Top of Page Home Food Mates Members Tutorials Forum Buy Templates Contact Us 
 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.