![]() |
![]() |
![]() |
The SWF files below are interactive
![]() |
![]() |
![]() |
TweenMax also introduces an innovative feature called "bezierThrough" that allows you to define points through which you want the bezier curve to travel. Use the code below and alter the bezierThrough values, adding more or less values.
import gs.TweenMax;
import fl.motion.easing.*
TweenMax.to(mc, 3, {x:344, y:351, bezierThrough:[{x:78.2, y:198.15}, {x:260.05, y:93.75}, {x:348.8, y:123.3}], ease:Bounce.easeOut});
![]() |
![]() |
![]() |
Start a tween, and while it is playing start another one using the Timer Class and TimerEvent. First you have to import the classes, then create the timer. the Timer() constructor takes two parameters. The first parameter controls how frequently the TimerEvent.TIMER event gets dispatched (in milliseconds). The second parameter is the number of times that the TimerEvent.TIMER event will be dispatched before stopping.
import fl.transitions.Tween;
import fl.transitions.easing.*;
import flash.utils.Timer;
import flash.events.TimerEvent;
var timer:Timer = new Timer(1500, 1);//Creating the timer
timer.addEventListener(TimerEvent.TIMER, nextTween);
timer.start();
var myTweenX:Tween = new Tween(movieClip, "alpha", None.easeOut, 0, 1, 3, true);
function nextTween(e:TimerEvent):void{
var myTweenAlpha:Tween = new Tween(movieClip, "x", Strong.easeOut, 0, 300, 3, true);
timer.removeEventListener(TimerEvent.TIMER, nextTween);
}
![]() |
![]() |
![]() |
Tween example is from greenthumb
GTween V2.01 is the newest released. Version 2.01 is a minor update that adds support for AS3 events, allows multiple callbacks at the same position on a timeline, introduces a version property, and fixes a number of bugs reported by users.
Advanced Sequencing Demo
Timeline Animation Synchronization Demo
4kb 3D Image Wall Demo
Tween Interrupt Demo
Color Adjust Plugin Demo
Motion Blur and Simple Sequencing Demo
Download latest build of GTween. (Version 2.01)
The gskinner Home Page.