| Package | graphics.transitions |
| Class | public class TweenLite |
| Inheritance | TweenLite Motion CoreTransition CoreAction Task Object |
Easing refers to gradual acceleration or deceleration during an animation, which helps your animations appear more realistic.
Example :
import graphics.transitions.TweenLite ;
import graphics.easings.backOut ;
var tween:TweenLite = new TweenLite (mc, "x", backOut, mc.x, 400, 2, true, true) ;
| Property | Defined By | ||
|---|---|---|---|
![]() | changeIt : Signaler
This signal emit when the notifyChanged method is invoked. | CoreAction | |
![]() | clearIt : Signaler
This signal emit when the notifyCleared method is invoked. | CoreAction | |
![]() | duration : Number
Returns the duration of the tweened animation in frames or seconds. | Motion | |
![]() | finishIt : Signaler
This signal emit when the notifyFinished method is invoked. | Task | |
![]() | fps : Number
Returns the number of frames per second of the tweened animation. | Motion | |
![]() | id : *
Indicates the id value of this object. | CoreTransition | |
![]() | infoIt : Signaler
This signal emit when the notifyInfo method is invoked. | CoreAction | |
![]() | logger : Logger
Determinates the internal Logger reference of this Loggable object. | Task | |
![]() | looping : Boolean
The flag to determinate if the Action object is looped. | CoreAction | |
![]() | loopIt : Signaler
This signal emit when the notifyLooped method is invoked. | CoreAction | |
![]() | pauseIt : Signaler
This signal emit when the notifyPause method is invoked. | CoreAction | |
![]() | phase : String [read-only]
The current phase of the action. | Task | |
![]() | prevTime : Number
Defined the internal prevTime value. | Motion | |
![]() | progressIt : Signaler
This signal emit when the notifyProgress method is invoked. | CoreAction | |
![]() | resumeIt : Signaler
This signal emit when the notifyResumed method is invoked. | CoreAction | |
![]() | running : Boolean [read-only]
Indicates true if the process is in progress. | Task | |
![]() | startIt : Signaler
This signal emit when the notifyStarted method is invoked. | Task | |
![]() | stopIt : Signaler
This signal emit when the notifyStopped method is invoked. | CoreAction | |
![]() | stopped : Boolean [read-only]
Indicates if the motion is stopped. | Motion | |
![]() | target : *
Indicates the target reference of the object contrains by the Motion effect. | Motion | |
![]() | time : Number [read-only]
Indicates the current time within the duration of the animation. | Motion | |
![]() | timeoutIt : Signaler
This signal emit when the notifyTimeOut method is invoked. | CoreAction | |
| tweenEntry : TweenEntry
The TweenEntry reference of this tween. | TweenLite | ||
![]() | useSeconds : Boolean
Defined if the Motion used seconds or not. | Motion | |
| Method | Defined By | ||
|---|---|---|---|
TweenLite(obj:* = null, prop:String = null, easing:* = null, begin:Number, finish:Number, duration:Number = 0, useSeconds:Boolean = false, auto:Boolean = false)
Creates a new TweenLite instance. | TweenLite | ||
clone():* [override]
Returns a shallow copy of this Tween object. | TweenLite | ||
continueTo(finish:Number, duration:Number, noRestart:Boolean = false):void
Instructs the tweened animation to continue tweening from its current animation point to a new finish and duration point. | TweenLite | ||
![]() | equals(o:*):Boolean
Compares the specified object with this object for equality. | CoreTransition | |
![]() | isLocked():Boolean
Returns true if the object is locked. | Task | |
![]() | lock():void
Locks the object. | Task | |
![]() | nextFrame():void
Forwards the tweened animation to the next frame. | Motion | |
![]() | notifyChanged():void
Notify when the process is changed. | CoreAction | |
![]() | notifyCleared():void
Notify when the process is cleared. | CoreAction | |
![]() | notifyFinished():void
Notify an ActionEvent when the process is finished. | Task | |
![]() | notifyInfo(info:*):void
Notify a specific information when the process is changed. | CoreAction | |
![]() | notifyLooped():void
Notify when the process is looped. | CoreAction | |
![]() | notifyPaused():void
Notify when the process is paused. | CoreAction | |
![]() | notifyProgress():void
Notify when the process is in progress. | CoreAction | |
![]() | notifyResumed():void
Notify when the process is resumed. | CoreAction | |
![]() | notifyStarted():void
Notify an ActionEvent when the process is started. | Task | |
![]() | notifyStopped():void
Notify when the process is stopped. | CoreAction | |
![]() | notifyTimeOut():void
Notify when the process is out of time. | CoreAction | |
![]() | prevFrame():void
Directs the tweened animation to the frame previous to the current frame. | Motion | |
![]() | resume():void [override]
Resumes a tweened animation from its stopped point in the animation. | Motion | |
![]() | rewind(t:Number = 0):void
Rewinds a tweened animation to the beginning of the tweened animation. | Motion | |
![]() | run(... arguments):void [override]
Runs the object. | Motion | |
![]() | setTime(t:Number):void
Sets the current time within the duration of the animation. | Motion | |
setTweenEntry(prop:String, easing:*, begin:Number, finish:Number):void
Set the TweenEntry property of this TweenLite object. | TweenLite | ||
![]() | start():void [override]
Starts the tweened animation from the beginning. | Motion | |
![]() | startInterval():void
Starts the intenral interval of the tweened animation. | Motion | |
![]() | stop():void [override]
Stops the tweened animation at its current position. | Motion | |
![]() | stopInterval():void
Stops the intenral interval of the tweened animation. | Motion | |
![]() | unlock():void
Unlocks the display. | Task | |
update():void [override]
Update the current Tween in the time. | TweenLite | ||
yoyo():void
Instructs the tweened animation to play in reverse from its last direction of tweened property increments. | TweenLite | ||
| tweenEntry | property |
tweenEntry:TweenEntryThe TweenEntry reference of this tween.
Example :
import graphics.transitions.TweenEntry ;
import graphics.transitions.TweenLite ;
import graphics.easings.bounceOut ;
var tw:TweenLite = new TweenLite( mc ) ;
tw.duration = 1 ;
tw.useSeconds = true ;
tw.tweenEntry = new TweenEntry( "x" , bounceOut, mc.x , 500 ) ;
tw.start() ;
public function get tweenEntry():TweenEntry public function set tweenEntry(value:TweenEntry):void| TweenLite | () | Constructor |
public function TweenLite(obj:* = null, prop:String = null, easing:* = null, begin:Number, finish:Number, duration:Number = 0, useSeconds:Boolean = false, auto:Boolean = false)Creates a new TweenLite instance.
Parametersobj:* (default = null) — The target object of this tween.
| |
prop:String (default = null) — The property name of the object to interpolate.
| |
easing:* (default = null) — The easing equation reference (use a Function or an Easing object)..
| |
begin:Number (default = NaN) — A number indicating the begining value of the target object property that is to be tweened.
| |
finish:Number (default = NaN) — A number indicating the ending value of the target object property that is to be tweened.
| |
duration:Number (default = 0) — A number indicating the length of time or number of frames for the tween motion.
| |
useSeconds:Boolean (default = false) — Indicates if the duration is in seconds.
| |
auto:Boolean (default = false) — Run the tween automatically.
|
| clone | () | method |
override public function clone():*Returns a shallow copy of this Tween object.
Returns* — a shallow copy of this Tween object.
|
| continueTo | () | method |
public function continueTo(finish:Number, duration:Number, noRestart:Boolean = false):voidInstructs the tweened animation to continue tweening from its current animation point to a new finish and duration point.
Example :
system system.events.ActionEvent ;
import graphics.transitions.TweenLite ;
import graphics.easings.bounceOut ;
import system.process.Action ;
var continueTo:Function = function( action:Action ):void
{
trace("continueTo(100,2)" ) ;
tw.continueTo( 100 , 3 ) ;
}
var tw:TweenLite = new TweenLite( mc, "x", bounceOut, mc.x, 550, 1, true ) ;
tw.finishIt.connect( continueTo , 0 , true ) ;
tw.run() ;
Parameters
finish:Number — A number indicating the ending value of the target object property that is to be tweened.
| |
duration:Number (default = NaN) — A number indicating the length of time or number of frames for the tween motion.
| |
noRestart:Boolean (default = false) — This optional flag is used to fix the restart process of the tween.
|
| setTweenEntry | () | method |
public function setTweenEntry(prop:String, easing:*, begin:Number, finish:Number):voidSet the TweenEntry property of this TweenLite object.
Parameters
prop:String — the property name of the object to change.
| |
easing:* — the easing function of the tween entry (use a Function or an Easing object).
| |
begin:Number — the begin value.
| |
finish:Number — the finish value.
|
| update | () | method |
override public function update():voidUpdate the current Tween in the time.
| yoyo | () | method |
public function yoyo():voidInstructs the tweened animation to play in reverse from its last direction of tweened property increments. If this method is called before a Tween object's animation is complete, the animation abruptly jumps to the end of its play and then plays in a reverse direction from that point.
Example :
import system.events.ActionEvent ;
import graphics.transitions.TweenLite ;
import graphics.easings.bounceOut ;
import system.process.Action ;
var yoyo:Function = function( action:Action ):void
{
trace( "yoyo" ) ;
tw.yoyo() ;
}
var tw:TweenLite = new TweenLite( mc, "x", bounceOut, mc.x, 550, 2, true ) ;
tw.finishIt.connect( finish ) ;
tw.run() ;