MC Tween: it saves the world.™

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

.isTweening()

Applies To

MovieClip, Sound, TextField

Availability

Flash 6 and above, using AS1 or AS2.

Usage

<MovieClip|Sound|TextField>.isTweening()

Parameters

None.

Returns

A boolean value (either true or false) informing if the object has a tweening going on or not. Future tweenings (created with delays) are also taken into consideration.

Description

Auxiliary function; it's used to find out if an object has a tweening being performed on it or not.

Examples

// Shows whether if a MovieClip has a tweening going on
if (<MovieClip>.isTweening()) {
 trace ("The MovieClip has a tweening going on at this moment.");
} else {
 trace ("The MovieClip doesn't have a tweening going on at this moment.");
}

See Also

getTweens()

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