Flash Tutorial: Preloader ActionScript

Home Food Mates • Members Tutorials Forum Buy Templates Contact Us 

 


Flash Tutorials

   

Tutorial - Preloading External Flash Movies

Free Flash Tutorial


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

 

Step Three: The Preloader ActionScript

  1. Select Frame 2 of the Layer: ActionScript
  2. Add this code to that frame (if you wish you may leave out the gray code hints):

    // Get info on how much of the Movie has loaded so far and compare it to how much of the Movie has to be loaded
    if (this.getBytesLoaded()>=this.getBytesTotal()) {

    // If the Movie has fully loaded then go to and stop at the next frame
    gotoAndStop(3);

    // If the Movie hasn't fully loaded
    } else {

    // Then go back to frame 1 and play from frame 1 to check again
    gotoAndPlay(1);
    }

         

Step 3    <<   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

50114 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.