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
- TweenEvent (e:String, tween:AdvancedTween)
- Constructs a new TweenEvent instance broadcasted by Tween
Instance properties
Instance properties inherited from BasicEvent
Instance methods
- getTween : AdvancedTween
- Returns Tween event source.
- toString : String
- Returns the string representation of this instance.
Event handlers
- onStartEVENT : String
- Broadcasted to listeners when tween starts.
- onStopEVENT : String
- Broadcasted to listeners when tween stops.
- onMotionFinishedEVENT : String
- Broadcasted to listeners when tween is finished.
- onMotionChangedEVENT : String
- Broadcasted to listeners when property value is updated.
Constructor
TweenEvent
Constructs a new
family classes.
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
Returns
Tween event source. Returns:
-
Tweeninstance
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:
-
Stringrepresentation of this instance
Overrides:
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.