So, this is an example of how to make a banner in Actionscript 3.0 with no timeline animation.
You can see it here. You can download the .fla here.
The code:
import gs.TweenLite;
function infiniteMovement()
{
cuad_mc.x=0;
TweenLite.to(cuad_mc, 5, {x:250, onComplete:onFinishTween, onCompleteParams:[4,tracker_mc]});
}
function onFinishTween(parameter1:Number,parameter2:MovieClip)
{
infiniteMovement();
}
infiniteMovement();
stop();
tracker_mc is just a movieclip out of the stage. This way, after five seconds of animation I use this movieclip as a reference just to call again to the function infiniteMovement()
More about tweenlite in GreenSock
Showing posts with label tween. Show all posts
Showing posts with label tween. Show all posts
Wednesday, April 8, 2009
Sunday, March 22, 2009
Creativity Screensaver

In the past I made some work with CID which is an association promoting Creativity and Innovation Day, on April 21st. So I decided to do my best playing with bubbles, colors, inspiring creativity sentences...
I had some problems with the recursive calls in tweenning while using greenshock classes but at the end I resolved them.
Hope you enjoy it!
Subscribe to:
Posts (Atom)