Init Function

That's it for the declarations.... now lets get our initial actions to run with an init function. Remember, init isn't a "built-in" flash function. You can call this function just about anything you want, but it's fairly common for programmers to use init:

  1. Click Statements > User-Defined Functions > function
  2. Type init in the Name box

Now place a single star on the stage as part of the init funciton:

  1. Click ActionScript 2.0 Classes > Movie > MovieClip > Methods > attachMovie
  2. The Object is _root
  3. Type star in the Linkage Name box and deselect Expression
  4. Type newStar in the New Name box and deselect Expression
  5. Set the Depth equal to 1