MC Tween: it saves the world.™

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

.bezierSlideTo()

Applies To

MovieClip, TextField

Availability

Flash 6 and above, using AS1 or AS2.

Usage

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

Parameters

control point x : x position of the desired control point

control point y : y position of the desired control point

x : Desired _x position for this object.

y : 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 _x and _y properties of a MovieClip or TextField, sliding it on screen, but using a curve as its path. The curve is a simple curve with one bezier control point (BCP); the syntax and the concept is similar to actionScript's MovieClip.curveTo() drawing method.

Examples

// Moves a MovieClip from its current position to 200,200, with the bezier control point at 100,100, on 0.5 seconds
<MovieClip>.bezierSlideTo(100, 100, 200, 200, 0.5);

See Also

roundedBezierSlideTo(), slideTo(), MovieClip.curveTo()

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