MC Tween: it saves the world.™

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

.xScaleTo()

Applies To

MovieClip, TextField

Availability

Flash 6 and above, using AS1 or AS2.

Usage

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

Parameters

scale : Desired scale value for the object's _xscale attribute, in percent (100 being the standard size).

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

Returns

Nothing.

Description

Shortcut method; does a transition on the _xscale property of a MovieClip or TextField at the same time, resizing it based on its original control point.

Examples

// Scales a MovieClip horizontally to 150%, in two seconds, using an easeOutExpo transition
<MovieClip>.xScaleTo(150, 2, "easeoutexpo");

See Also

scaleTo(), yScaleTo()

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