The Spinner Movie
- Create a new movie and save it in the same directory as the spinner class: Spinner.as
- Draw a star, then double click to select both the fill and the stroke.
- Make the star a movie clip with the registration in the center
- Click the Advanced button to open up the full window

- Click export for ActionScript, then type in Spinner as the base class.
- Click the green arrow to make sure that Flash can find the class definition.
- Click OK. You will get an error message that no definition for Star.as was found. That is OK.
- Run the movie. The star will atomatically spin.
- Make multiple copies of the star all over the stage. They will all spin and no code in this movie.
INDEX,
Spinning Stars: Objects,
A Spinner Class,
The Spinner Movie: Using a Class,
The Clicker Class,
Add new instance at run time,
Add new instance at run time DEMO,
Create a Flasher classNext lesson:
OOPs: More Classes
The Spinner Movie: Using a Class