Add a new ActionScript Class in the oas2 subfolder called RotatingStar. Copy and paste this code. Save changes.
Open the main class file, Application.as. Two modifications are required.
- Above the class declaration:
import oas2.RotatingStar ;
- At the bottom of the class constructor:
var my_star2:RotatingStar = RotatingStar.create(this, "my_star2", 250, 100, 400) ;
1 comment:
When I add a RotatingStar as you say above, the previous tutorial's (non-rotating) star begins to rotate too! That is, I have one star created with attachMovie, the other with RotatingStar, but they both act the same.
I'm guessing it has something to do with the static_symbol_name() hack corrupting the first movie, but I'm too much of a newb to be sure.
Post a Comment