Packagecom.desuade.motion.events
Classpublic class TweenEvent
InheritanceTweenEvent Inheritance MotionEvent Inheritance flash.events.Event

Language Version : ActionScript 3
Since : 23.04.2009
Runtime Versions : AIR 1.0, Flash Player 9.0.0

This event is created by any of the tween classes in the motion package.



Public Properties
 PropertyDefined By
  data : Object
This this object that gets passed that has different objects depending on what dispatches it and what event: BasicTweens and Tweens (and decedents) pass 2 objects, themselves and the PrimitiveTweens they create: basic and primitive. Note: The ENDED event does not pass a PrimitiveTween when it's a func-only tween, or when a delayed tween is stopped before it begins to tween.
TweenEvent
Public Methods
 MethodDefined By
  
TweenEvent(type:String, data:Object = null, bubbles:Boolean = false, cancelable:Boolean = false)
Creates a new TweenEvent.
TweenEvent
  
clone():Event
[override]
TweenEvent
Public Constants
 ConstantDefined By
 InheritedADVANCED : String = advanced
[static] This event gets broadcasted when a sequence moves to the next item.
MotionEvent
  ENDED : String = ended
[static] This even is fired when a tween ends.
TweenEvent
  STARTED : String = started
[static] This event is fired when a tween starts.
TweenEvent
  UPDATED : String = updated
[static] This event is fired when a tween is updating the target's property. This is not enabled by default for performance reasons. To enable this in Tween classes, pass update:true into the tween config object – {property:'x', value:50, update:true, duration:2}
TweenEvent
Property Detail
dataproperty
public var data:Object

This this object that gets passed that has different objects depending on what dispatches it and what event:

BasicTweens and Tweens (and decedents) pass 2 objects, themselves and the PrimitiveTweens they create: basic and primitive.

Note: The ENDED event does not pass a PrimitiveTween when it's a func-only tween, or when a delayed tween is stopped before it begins to tween.

Constructor Detail
TweenEvent()Constructor
public function TweenEvent(type:String, data:Object = null, bubbles:Boolean = false, cancelable:Boolean = false)

Creates a new TweenEvent. Events get dispatched internally, manual creation isn't necessary.

Parameters
type:String
 
data:Object (default = null)
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)
Method Detail
clone()method
override public function clone():Event

Returns
Event
Constant Detail
ENDEDConstant
public static const ENDED:String = ended

This even is fired when a tween ends.

STARTEDConstant 
public static const STARTED:String = started

This event is fired when a tween starts.

UPDATEDConstant 
public static const UPDATED:String = updated

This event is fired when a tween is updating the target's property.

This is not enabled by default for performance reasons.

To enable this in Tween classes, pass update:true into the tween config object – {property:'x', value:50, update:true, duration:2}