MultiTweenFPS
| Kind of class: | class |
|---|---|
| Inherits from: | BasicMultiTweenFPS < AbstractMultiTween |
| Implements: | |
| Version: | 1.0 |
| Author: | Francis Bourre |
| Classpath: | com.bourre.transitions.MultiTweenFPS |
| File last modified: | Wednesday, 31 October 2007, 07:35:30 |
Summary
Constructor
Class properties
Instance properties
Instance properties inherited from BasicMultiTweenFPS
Instance properties inherited from AbstractMultiTween
Instance methods
Instance methods inherited from BasicMultiTweenFPS
Instance methods inherited from AbstractMultiTween
Constructor
MultiTweenFPS
function MultiTweenFPS (
e:Array,
n:Number,
s:Array,
f:Function)
Constructs a new
MultiTweenFPS instance.Example
var t:MultiTweenFPS = new MultiTweenFPS(mc, '_alpha', 0, 30, 100);
Parameters:
p:
Object which the Tween targets.
p:
Setter (method or property).
e:
Ending value of property.
n:
Length of time of the motion in frames.
s:
(optional) Starting value of property.
f:
(optional) Easing function.
Class properties
onMotionChangedEVENT
static onMotionChangedEVENT:TweenEventType = TweenEventType.onMotionChangedEVENT
(read,write)
Broadcasted to listeners when property value is updated.
Component metadata:
| Event | onMotionChanged |
|---|
onMotionFinishedEVENT
static onMotionFinishedEVENT:TweenEventType = TweenEventType.onMotionFinishedEVENT
(read,write)
Broadcasted to listeners when tween is finished.
Component metadata:
| Event | onMotionFinished |
|---|
onStartEVENT
static onStartEVENT:TweenEventType = TweenEventType.onStartEVENT
(read,write)
Broadcasted to listeners when tween starts.
Component metadata:
| Event | onStart |
|---|
onStopEVENT
static onStopEVENT:TweenEventType = TweenEventType.onStopEVENT
(read,write)
Broadcasted to listeners when tween stops.
Component metadata:
| Event | onStop |
|---|
Instance methods
addEventListener
function addEventListener (
e:TweenEventType) : Void
Adds listener for specifical event.
Example
t.addEventListener( MultiTweenFPS.onMotionFinishedEVENT, myListener );
Parameters:
t :
Name of the Event.
oL:
Listener object.
Specified by:
addListener
function addListener (
oL:ITweenListener) : Void
Adds listener for receiving all events.
Example
t.addListener(myListener);Parameters:
oL:
Listener object which implements ITweenListener interface.
Specified by:
execute
function execute (
e:IEvent) : Void
Starts tweening
com.bourre.commands.Command polymorphism.
See also:
Overrides:
Specified by:
removeEventListener
function removeEventListener (
e:TweenEventType) : Void
Removes listener for specifical event.
Example
t.removeEventListener( MultiTweenFPS.onMotionFinishedEVENT, myListener );
Parameters:
t :
Name of the Event.
oL:
Listener object.
Specified by:
removeListener
function removeListener (
oL:ITweenListener) : Void
Removes listener for receiving all events.
Example
t.removeListener(myListener);Parameters:
oL:
Listener object which implements ITweenListener interface.
Specified by:
start
function start (
) : Void
Starts tweening.
AbstractTween.start overridding
Overrides:
Specified by:
toString
function toString (
) : String
Returns the string representation of this instance.
Returns:
the string representation of this instance
Overrides:
Event handlers
onMotionFinished
function onMotionFinished (
) : Void
Implemented to add tween as listener to another tween.