MC Tween: it saves the world.™

Home | Using MC Tween | Documentation | AS2 usage notes | Animation Types | Downloads | Examples | Extensions | Author & Disclaimer | Links

.rotateTo()

Applies To

MovieClip, TextField

Availability

Flash 6 and above, using AS1 or AS2.

Usage

<MovieClip|TextField>.rotateTo(rotation [, seconds, animation type, delay, callback, extra1, extra2]);

Parameters

rotation : Desired rotation value, in degrees.

All other parameters are standard tween() related. Refer to the .tween() method for reference.

Returns

Nothing.

Description

Shortcut method; rotates the TextField or MovieClip object to an specific angle, using its _rotation property.

Examples

// Rotates a MovieClip 180 degrees (to make it stand upside-down) using an easeInOutBack animation for 2 seconds
<MovieClip>.rotateTo(180, 2, "easeinoutback");

MC Tween· Zeh Fernando, 2003-2006 · Proudly hosted at DreamHost · Disclaimer