MC Tween: it saves the world.™

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

.stopTween()

Applies To

MovieClip, Sound, TextField

Availability

Flash 6 and above, using AS1 or AS2.

Usage

<MovieClip|Sound|TextField>.stopTween([property(ies), property, ...);

Parameters

property(ies) : Property or properties to be stopped. This can be a single string containing one property name (as in "_x"), an array containing a list of property names (as in ["_x", "_y"]), or a list of properties as parameters (as in "_x", "_y"). It can be omitted, too; in this case, all tweenings for that particular object will be stopped.

Returns

Nothing.

Description

Method; removes tweenings from a particular object. All properties being tweened remain as-is, with the values they had when the method was called.

Examples

// Stops an _alpha tweening that's being executed on a TextField
<TextField>.stopTween("_alpha");

// Stops an _x and and _y tweening on a MovieClip
<MovieClip>.stopTween(["_x", "_y"]);

// Also stops an _x and and _y tweening on a MovieClip
<MovieClip>.stopTween("_x", "_y");

// Stops all tweenings being done on a Sound object
<Sound>.stopTween();

See Also

pauseTween(), resumeTween()

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