| Package | com.bourre.transitions |
| Interface | public interface AdvancedTween extends Tween, Suspendable, Runnable, ASyncCommand, Command |
| Implementors | AbstractMultiTween, AbstractTween |
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
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
| Method | Defined by | ||
|---|---|---|---|
![]() |
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 | ||
![]() |
execute(e:Event = null):void
Execute the request according to the current command data.
| Command | |
![]() |
fireCommandEndEvent():void
Fires the
onCommandEnd event to the listeners of this command. | ASyncCommand | |
![]() |
isRunning():Boolean
Returns
true if this object is running. | Runnable | |
![]() |
removeASyncCommandListener(listener:ASyncCommandListener):Boolean
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 | ||
![]() |
reset():void
Resets the state of this object.
| Suspendable | |
![]() |
run():void
Starts the asynchronous process of this runnable object.
| Runnable | |
![]() |
setEasing(f:Function):void
Defines the easing function used by this
Tween object. | Tween | |
![]() |
start():void
Starts the operation of this suspendable operation.
| Suspendable | |
![]() |
stop():void
Stops the operation in process.
| Suspendable | |
| 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.
Parameterstype:String — name of the event type.
|
|
listener:Object — object to be added as listener.
|
|
... rest |
Boolean — true 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.
listener:TweenListener — object to be added as listener.
|
Boolean — true 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.
Parameterstype:String — name of the event type.
|
|
listener:Object — object to be removed as listener.
|
Boolean — true 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.
Parameterslistener:TweenListener — object to be removed as listener.
|
Boolean — true if the object have been succesfully removed
as listener for this object
|
See also