TweenEvent

Kind of class:public class
Package:com.bourre.transitions
Inherits from:BasicEvent < Event
Classpath:com.bourre.transitions.TweenEvent
File last modified:Monday, 24 November 2008, 11:36:57

Summary


Constructor
Instance properties
Instance properties inherited from BasicEvent
Instance methods
Instance methods inherited from BasicEvent
Event handlers

Constructor

TweenEvent

public function TweenEvent (
e:String, tween:AdvancedTween)

Constructs a new TweenEvent instance broadcasted by Tween
family classes.
Parameters:
e :
name of the event type.
tween:
Tween instance which trigger the event.
Example:

  • var e:TweenEvent = new TweenEvent( TweenEvent.onMotionFinishedEVENT, this );

Instance methods

getTween

public function getTween (

Returns Tween event source.
Returns:
  • Tween instance
Example:

  • var t:TweenMS = e.getTween();

toString

override public function toString (
) : String

Returns the string representation of this instance.

com.bourre.events.BasciEvent#toString overridding

Returns:
  • String representation of this instance

Event handlers

onMotionChangedEVENT

public static const onMotionChangedEVENT:String = "onMotionChanged"
(read)

Broadcasted to listeners when property value is updated.

onMotionFinishedEVENT

public static const onMotionFinishedEVENT:String = "onMotionFinished"
(read)

Broadcasted to listeners when tween is finished.

onStartEVENT

public static const onStartEVENT:String = "onStart"
(read)

Broadcasted to listeners when tween starts.

onStopEVENT

public static const onStopEVENT:String = "onStop"
(read)

Broadcasted to listeners when tween stops.