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:
- Click Statements > User-Defined Functions > function
- Type init in the Name box
Now place a single star on the stage as part of the init funciton:
- Click ActionScript 2.0 Classes > Movie > MovieClip > Methods > attachMovie
- The Object is _root
- Type star in the Linkage Name box and deselect Expression
- Type newStar in the New Name box and deselect Expression
- Set the Depth equal to 1