Flash tutorials
Home 3D (2) Actionscripting (65) Animation (100) Audio (4) Drawing (7) Full flash sites (4) Getting Started (15) Navigation (25) Special Effects (52) Text Effects (38)

Spinning Movie Clip

15.9.2006, 20:32    Total views: 36848

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)

Have questions about this tutorial?
Visit our friendly Community Forums!
Digg it! Add this tutorial to del.icio.us! Furl it! Add this tutorial to reddit! Spurl it! Add this tutorial to technorati!

Top tutorials

1. Advanced full flash site - Part 1
Total views: 221536

2. Water effect
Total views: 166040

3. Photo slide show
Total views: 153641

4. High-tech city animation
Total views: 151459

5. Special Picture Effect
Total views: 146246

Related links