Packagecom.bourre.transitions
Classpublic class TweenEvent
InheritanceTweenEvent Inheritance BasicEvent Inheritance 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.



Public Properties
 PropertyDefined by
 Inheritedtarget : Object
The source object of this event
BasicEvent
 Inheritedtype : String
The type of this event
BasicEvent
Protected Properties
 PropertyDefined by
 Inherited_oTarget : Object
The source object of this event, redefined to provide write access
BasicEvent
 Inherited_sType : String
The type of the event, redefined to provide write access
BasicEvent
Public Methods
 MethodDefined by
  
TweenEvent(e:String, tween:AdvancedTween)
Constructs a new TweenEvent instance broadcasted by Tween family classes.
TweenEvent
 Inherited
clone():Event
Clone the event
BasicEvent
 Inherited
getTarget():Object
Returns the current source of this event object.
BasicEvent
  
Returns Tween event source.
TweenEvent
 Inherited
getType():String
Returns the type of this event, which generally correspond to the name of the called function on the listener.
BasicEvent
 Inherited
setTarget(oTarget:Object):void
Defines the new source object of this event.
BasicEvent
 Inherited
setType(en:String):void
Defines the new event type for this event object.
BasicEvent
  
toString():String
Returns the string representation of this instance.
TweenEvent
Public Constants
 ConstantDefined 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
Constructor detail
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.

Parameters
e:String — name of the event type.
 
tween:AdvancedTweenTween instance which trigger the event.

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

Method detail
getTween()method
public function getTween():AdvancedTween

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Returns Tween event source.

Returns
AdvancedTweenTween instance

Example
     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

Returns
StringString representation of this instance
Constant detail
onMotionChangedEVENTconstant
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:

PropertyValue
type Dispatched event type
MethodValue
getTween() The current Tween carried by event
onMotionFinishedEVENTconstant 
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:

PropertyValue
type Dispatched event type
MethodValue
getTween() The current Tween carried by event
onStartEVENTconstant 
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:

PropertyValue
type Dispatched event type
MethodValue
getTween() The current Tween carried by event
onStopEVENTconstant 
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:

PropertyValue
type Dispatched event type
MethodValue
getTween() The current Tween carried by event