Design Recipes

How to cook a creative multimedia course…

Movie Clip Tweening Prototype

August21

Flash designer always need to do a lot of tweening animation or effect, whether using the frame or using actionscripts. Try this: http://laco.wz.cz/tween/. It saves a lot of time! It simplifies the way we write the actionscripts to animate the movie clips.

Movie Clip Tweening Prototype

First you need to download and install the .mxp file from http://laco.wz.cz/tween/?page=download.

#include “lmc_tween.as” for ActionScript 2.0 (runs fine on Flash Player 6) or #include “lmc_tween_as1.as” for ActionScript 1.0. After which, you can use following methods for every MovieClip, fast and easy to use:

MovieClip.tween()
MovieClip.stopTween()
MovieClip.isTweening()
MovieClip.getTweens()
MovieClip.lockTween()
MovieClip.unlockTween()
MovieClip.isTweenLocked()
MovieClip.alphaTo()
MovieClip.brightnessTo()
MovieClip.brightOffsetTo()
MovieClip.colorTo()
MovieClip.colorTransformTo()
MovieClip.contrastTo()
MovieClip.frameTo()
MovieClip.scaleTo()
MovieClip.slideTo()
MovieClip.rotateTo()

Go back to the site, http://laco.wz.cz/tween/, to read the online documentation for further explanation on how to use the functions. There are examples, http://laco.wz.cz/tween/?page=examples, too to show you how to write the code.

posted under Tutorial/ Tips
One Comment to

“Movie Clip Tweening Prototype”

  1. On August 22nd, 2008 at 10:07 pm Pin Says:

    Nice share

Email will not be published

Website example

Your Comment: