Packagecom.desuade.motion.events
Classpublic class PhysicsEvent
InheritancePhysicsEvent 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 the BasicPhysics class in the motion package.



Public Properties
 PropertyDefined By
  data : Object
This this object that gets passed when an event is fired.
PhysicsEvent
Public Methods
 MethodDefined By
  
PhysicsEvent(type:String, data:Object = null, bubbles:Boolean = false, cancelable:Boolean = false)
Creates a new PhysicsEvent.
PhysicsEvent
  
clone():Event
[override]
PhysicsEvent
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 event is fired when a BasicPhysics object stops.
PhysicsEvent
  STARTED : String = started
[static] This event is fired when a BasicPhysics object starts.
PhysicsEvent
  UPDATED : String = updated
[static] This event is fired when a BasicPhysics object is updating the target's property. This does not get fired by default, and will only boradcast if update:true is passed to the config
PhysicsEvent
Property Detail
dataproperty
public var data:Object

This this object that gets passed when an event is fired. It contains the BasicPhysics object and PrimitivePhysics: base and primitive

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

Creates a new PhysicsEvent. 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 event is fired when a BasicPhysics object stops.

STARTEDConstant 
public static const STARTED:String = started

This event is fired when a BasicPhysics object starts.

UPDATEDConstant 
public static const UPDATED:String = updated

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

This does not get fired by default, and will only boradcast if update:true is passed to the config