This tutorial will teach you how to rotate Movie Clip using Action Script and buttons in Flash 8. For this sample you'll need to use the same Flash document that I created in the previous tutorial.
Step 1
Downloda the source file (.fla) from the previous tutorial.
Step 2
Select the first frame of layer Action, open the Action Script Panel (F9), and delete the existing script (Ctrl+A + Delete).
Step 3
After that, while your Action Script Panel is still open, write this script:
ButtonIncrease.onRelease = function():Void {
star._rotation += 10;
};
Step 4
Then, write this script:
ButtonDecrease.onRelease = function():Void {
star._rotation -= 10;
};
Test your Movie (Ctrl+Enter)
We're done!
Have a nice day!
Download source file (.fla)