contents
 

project: Scripting a Simple Preloader

 
   
 

description: In this tutorial you will learn how to write ActionScript to enable a simple preloader.

Files:

 
   
 
   
  step 1: Select the preloader movie clip on the stage, Window > Actions (F9), and follow the steps in each of the movies below. Be sure to change the Event to EnterFrame. (Figure A)
   
  •Note: We will, of course, discuss these details in depth in class.
   
  A
   
  step 2: Just in case it's not clear, "_root." is the Condition entered in the movie below. (Figure B)
   
  B
   
  step 3: ">=_root." is the additional Condition manually entered below. (Figure C)
   
  C
   
  step 4: "_root" (without a period) is the Object. (Figure D)
   
  D
   
  step 5: A simple Play action finishes off out ActionScript. (Figure E)
   
  E
   
  step 6: Command-Return to Test Movie. View > Bandwidth Profiler to see details. View > Show Streaming to test preloader. (Figure F)
   
  •Note: The preloader animation below appears to play slowly because the processor on this iBook was straining to keep up with the screen capture at the same time it simulated the download. Yours will play at normal speed.
   
  F
   
  step 7: Well done! Now, create and script your own!
   
   
   
   
 
contents