MC Tween: it saves the world.™

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

Introduction

MC Tween works by adding new methods and functions to existing Actionscript classes - namely, the MovieClip, Sound and TextField classes. Since you won't have to instantiate new objects or extend anything, the new methods are all one need to know in order to create new tweenings with this extension.

To view the help for each different command, please select one of the methods, functions or event handlers below for an explanation of what each one does. If you're using AS2, also be sure to read the AS2 usage notes.

 

Core methods are the methods that make tweening work, and eventually, stop it if needed. They are all you need to get most of the functionality out of MC Tween.

Tweening starting
(MovieClip, Sound, TextField)

» tween()

Tweening ending
(MovieClip, Sound, TextField)
» stopTween()

 

Shortcut methods are methods that help you do tweenings faster, easier, and keep the code more readable. They also provide ways of tweening attributes that otherwise aren't direcly available as a property, like a MovieClip tinting or a Sound volume, for example.

Opacity control
(MovieClip, TextField)

» alphaTo()

Moving around
(MovieClip, TextField)

» slideTo()

» xSlideTo()

» ySlideTo()

» bezierSlideTo()

Rotating
(MovieClip, TextField)

» rotateTo()

Resizing
(MovieClip, TextField)

» resizeTo()

» scaleTo()

» xScaleTo()

» yScaleTo()

Color tinting
(MovieClip, TextField)

» colorTo()

Color transforming
(MovieClip)

» colorTransformTo()

Timeline controlling
(MovieClip)

» frameTo()

Volume/panning control
(Sound)

» volumeTo()

» panTo()

Scrolling
(TextField)

» scrollTo()

 

Rounded shortcut methods are just like shortcut methods, but create an animation using rounded values only. This is useful when siliding movieclips that must always be featured on rounded x and y positions, like movieclips with pixel font content.

Tweening starting
(MovieClip, Sound, TextField)

» roundedTween()

Moving around
(MovieClip, TextField)

» roundedSlideTo()

» roundedXSlideTo()

» roundedYSlideTo()

» roundedBezierSlideTo()

 

Flash 8 filters shortcut methods are methods used to apply Flash 8 filters tweenings to an object.

Blur
(MovieClip, TextField)

» blurTo()

» xBlurTo()

» yBlurTo()

» xyBlurTo()

Glow
(MovieClip, TextField)

» glowTo()

» xGlowTo()

» yGlowTo()

» xyGlowTo()

Bevel
(MovieClip, TextField)

» bevelTo()

» xyBevelTo()

 

Auxiliary functions are functions that work by dealing helping the user find out whether a tweening is being executed or not on an object.

Tweenings
(MovieClip, Sound, TextField)

» getTweens()

» isTweening()

 

Auxiliary methods are methods that control existing tweenings - pausing or resuming them - or how an object deals with them - locking or unlocking an object from being tweened.

Tweening locking
(MovieClip, Sound, TextField)

» lockTween()

» unlockTween()

Tweening pausing/resuming
(MovieClip, Sound, TextField)

» pauseTween()

» resumeTween()

 

Finally, additional events are new event handlers that can be added to objects to respond to a tweening update (once a frame) or completion (when the tweening has ended). Much like MovieClip event handlers, these additional events are directly added to the objects, with no listening or broadcasting involved.

Tweening events
(MovieClip, Sound, TextField)

» onTweenUpdate

» onTweenComplete

 

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