MultiTweenMS

Kind of class:class
Inherits from:BasicMultiTweenMS < AbstractMultiTween
Implements:
Version:1.0
Author:Francis Bourre
Classpath:com.bourre.transitions.MultiTweenMS
File last modified:Wednesday, 31 October 2007, 07:35:30

Constructor

MultiTweenMS

function MultiTweenMS (
e:Array, n:Number, s:Array, f:Function)
Constructs a new MultiTweenMS instance.

Example

var t0:MultiTweenMS = new MultiTweenMS( mc, ["_x", "_y", "_alpha"], [600, 500, 0], 1200 );
var t1:MultiTweenMS = new MultiTweenMS( [mc0, mc1, mc2], ["_x", "_y", "_alpha"], [600, 500, 0], 1200, [0, 0, 100] );
var t2:MultiTweenMS = new MultiTweenMS( this, "arrayProperty", [600, 500, 0], 1200 );
Parameters:
t:
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( MultiTweenMS.onMotionFinishedEVENT, myListener );
Parameters:
t :
Name of the Event.
oL:
Listener object.

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.

removeEventListener

function removeEventListener (
e:TweenEventType) : Void
Removes listener for specifical event.

Example

t.removeEventListener( MultiTweenMS.onMotionFinishedEVENT, myListener );
Parameters:
t :
Name of the Event.
oL:
Listener object.

removeListener

function removeListener (
oL:ITweenListener) : Void
Removes listener for receiving all events.

Example

t.removeListener(myListener);
Parameters:
oL:
Listener object which implements ITweenListener interface.

start

function start (
) : Void
Starts tweening.

AbstractTween.start overridding

stop

function stop (
) : Void
Stops tweening.

AbstractTween.stop overridding

toString

function toString (
) : String
Returns the string representation of this instance.
Returns:
the string representation of this instance

Event handlers

onMotionFinished

function onMotionFinished (
) : Void
Implemented to add tween as listener to another tween.