Home | Flash AS3 Tutorials | Flash Animation Tutorials | Store

Basic Flash ActionScript Rotation Animation Tutorial

This Flash tutorial series shows how to do some rotation animation with ActionScript 3.

Rotation - It indicates the rotation of the target object in degrees from its original orientation as applied from the transformation point.

The first Flash ActionScript tutorial will show how to use rotation property to do a very simple Flash rotation animation.

Please update flash player to view this Flash ActionScript tutorial!

Flash Tutorial Content:

Rotation is the most common Flash animation. It is very easy to do some interesting rotation animation with the rotation property with Flash ActionScript 3.

The first Flash Movie of this tutorial is shown as above.

Flash ActionScript Codes:

// Add Listener to the Rotate Button
rotate_btn.addEventListener(MouseEvent.MOUSE_DOWN, rotateSquare);

 

function rotateSquare(evt:MouseEvent):void {

// Rotate the MovieClip
square_mc.rotation += 10;

// Display message
output_txt.text = "Current rotation angle: " + square_mc.rotation;

}

Download Flash Source File:

Flash Source File rotation-mc-1.fla

Remarks:

This Flash ActionScript tutorial shows how to use the rotation property with ActionScript 3. In next ActionScript tutorial, we will rotate the square MovieClip continuosly.