| Package | com.bourre.transitions |
| Class | public class TweenEvent |
| Inheritance | TweenEvent BasicEvent flash.events.Event |
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
TweenEvent defines event model for Tween API.
TweenEvent events are broadcasted by Tween
instances.
| Method | Defined by | ||
|---|---|---|---|
|
TweenEvent(e:String, tween:AdvancedTween)
Constructs a new
TweenEvent instance broadcasted by Tween
family classes. | TweenEvent | ||
![]() |
clone():Event
Clone the event
| BasicEvent | |
![]() |
getTarget():Object
Returns the current source of this event object.
| BasicEvent | |
|
Returns
Tween event source. | TweenEvent | ||
![]() |
getType():String
Returns the type of this event, which generally correspond
to the name of the called function on the listener.
| BasicEvent | |
![]() |
setTarget(oTarget:Object):void
Defines the new source object of this event.
| BasicEvent | |
![]() |
setType(en:String):void
Defines the new event type for this event object.
| BasicEvent | |
|
toString():String
Returns the string representation of this instance.
| TweenEvent | ||
| Constant | Defined by | ||
|---|---|---|---|
| onMotionChangedEVENT : String = "onMotionChanged" [static]
Defines the value of the
type property of the event
object for a onMotionChanged event. | TweenEvent | ||
| onMotionFinishedEVENT : String = "onMotionFinished" [static]
Defines the value of the
type property of the event
object for a onMotionFinished event. | TweenEvent | ||
| onStartEVENT : String = "onStart" [static]
Defines the value of the
type property of the event
object for a onStart event. | TweenEvent | ||
| onStopEVENT : String = "onStop" [static]
Defines the value of the
type property of the event
object for a onStop event. | TweenEvent | ||
| TweenEvent | () | constructor |
public function TweenEvent(e:String, tween:AdvancedTween)
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Constructs a new TweenEvent instance broadcasted by Tween
family classes.
e:String — name of the event type.
|
|
tween:AdvancedTween — Tween instance which trigger the event.
|
var e:TweenEvent = new TweenEvent( TweenEvent.onMotionFinishedEVENT, this );
| getTween | () | method |
public function getTween():AdvancedTween
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Returns Tween event source.
AdvancedTween —
Tween instance
|
var t:TweenMS = e.getTween();
| toString | () | method |
public override function toString():String
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Returns the string representation of this instance.
com.bourre.events.BasciEvent#toString overridding
String — String representation of this instance
|
| onMotionChangedEVENT | constant |
public static const onMotionChangedEVENT:String = "onMotionChanged"
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Defines the value of the type property of the event
object for a onMotionChanged event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
type |
Dispatched event type |
| Method | Value |
getTween()
| The current Tween carried by event |
| onMotionFinishedEVENT | constant |
public static const onMotionFinishedEVENT:String = "onMotionFinished"
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Defines the value of the type property of the event
object for a onMotionFinished event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
type |
Dispatched event type |
| Method | Value |
getTween()
| The current Tween carried by event |
| onStartEVENT | constant |
public static const onStartEVENT:String = "onStart"
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Defines the value of the type property of the event
object for a onStart event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
type |
Dispatched event type |
| Method | Value |
getTween()
| The current Tween carried by event |
| onStopEVENT | constant |
public static const onStopEVENT:String = "onStop"
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Defines the value of the type property of the event
object for a onStop event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
type |
Dispatched event type |
| Method | Value |
getTween()
| The current Tween carried by event |