MC Tween: it saves the world.™

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

.roundedYSlideTo()

Applies To

MovieClip, TextField

Availability

Flash 6 and above, using AS1 or AS2.

Usage

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

Parameters

x : Desired _y position for this object.

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

Returns

Nothing.

Description

Shortcut method; does a transition on the _y property of a MovieClip or TextField, sliding it on screen vertically (like the ySlideTo() method), but using only rounded positions when updating. This is useful when tweening "pixel" text or other type of pixel-aligned content.

Examples

// Moves a MovieClip to _y=20.
<MovieClip>.roundedYSlideTo(10, 0.5);

See Also

ySlideTo(), roundedSlideTo(), roundedXSlideTo()

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