Packagecom.bourre.transitions
Interfacepublic interface AdvancedTween extends Tween, Suspendable, Runnable, ASyncCommand, Command
ImplementorsAbstractMultiTween, AbstractTween

Player version: Flash Player 9.0
Language version: ActionScript 3.0

The AdvancedTween interface extends Tween and add the support for event dispatching.

The tween object invokes the TweenEvent.onMotionChangedEVENT event on a regular interval on the effect instance for the duration of the tween, passing to the onMotionChanged method the interpolated value between the start value and the end value. Typically, the callback function updates some property of the target object, causing that object to animate over the duration of the effect.

When the effect ends, the tween objects invokes TweenEvent.onMotionFinishedEVENT event on its listeners, if you defined one.

Take a look at MultiTweenFPS, MultiTweenMS, TweenFPS and TweenMS for concret implementations.

See also

Tween.html


Public Methods
 MethodDefined by
 Inherited
addASyncCommandListener(listener:ASyncCommandListener, ... rest):Boolean
Adds the passed-in command listener object as listener for this command events.
ASyncCommand
  
addEventListener(type:String, listener:Object, ... rest):Boolean
Adds the passed-in listener as listener for the passed-in event type.
AdvancedTween
  
addListener(listener:TweenListener):Boolean
Adds the passed-in listener object as listener for all events dispatched by the tween.
AdvancedTween
 Inherited
execute(e:Event = null):void
Execute the request according to the current command data.
Command
 Inherited
Fires the onCommandEnd event to the listeners of this command.
ASyncCommand
 Inherited
isRunning():Boolean
Returns true if this object is running.
Runnable
 Inherited
Removes the passed-in command listener object as listener for this command events.
ASyncCommand
  
removeEventListener(type:String, listener:Object):Boolean
Removes the passed-in listener for listening the passed-in event type.
AdvancedTween
  
removeListener(listener:TweenListener):Boolean
Removes the passed-in listener from listening all events dispatched by this tween.
AdvancedTween
 Inherited
reset():void
Resets the state of this object.
Suspendable
 Inherited
run():void
Starts the asynchronous process of this runnable object.
Runnable
 Inherited
setEasing(f:Function):void
Defines the easing function used by this Tween object.
Tween
 Inherited
start():void
Starts the operation of this suspendable operation.
Suspendable
 Inherited
stop():void
Stops the operation in process.
Suspendable
Method detail
addEventListener()method
public function addEventListener(type:String, listener:Object, ... rest):Boolean

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Adds the passed-in listener as listener for the passed-in event type.

Parameters
type:String — name of the event type.
 
listener:Object — object to be added as listener.
 
... rest

Returns
Booleantrue if the object have been succesfully added as listener for the passed-in event type

See also

addListener()method 
public function addListener(listener:TweenListener):Boolean

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Adds the passed-in listener object as listener for all events dispatched by the tween. The object must implements the TweenListener interface.

Parameters
listener:TweenListener — object to be added as listener.

Returns
Booleantrue if the object have been succesfully added as listener for this object

See also

removeEventListener()method 
public function removeEventListener(type:String, listener:Object):Boolean

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Removes the passed-in listener for listening the passed-in event type.

Parameters
type:String — name of the event type.
 
listener:Object — object to be removed as listener.

Returns
Booleantrue if the object have been succesfully remove as listener for the passed-in event type

See also

removeListener()method 
public function removeListener(listener:TweenListener):Boolean

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Removes the passed-in listener from listening all events dispatched by this tween.

Parameters
listener:TweenListener — object to be removed as listener.

Returns
Booleantrue if the object have been succesfully removed as listener for this object

See also