| Package | com.desuade.motion.events |
| Class | public class PhysicsEvent |
| Inheritance | PhysicsEvent MotionEvent flash.events.Event |
| Language Version : | ActionScript 3 |
| Since : | 23.04.2009 |
| Runtime Versions : | AIR 1.0, Flash Player 9.0.0 |
| Property | Defined By | ||
|---|---|---|---|
| data : Object
This this object that gets passed when an event is fired. | PhysicsEvent | ||
| Method | Defined By | ||
|---|---|---|---|
PhysicsEvent(type:String, data:Object = null, bubbles:Boolean = false, cancelable:Boolean = false)
Creates a new PhysicsEvent. | PhysicsEvent | ||
clone():Event [override]
| PhysicsEvent | ||
| Constant | Defined By | ||
|---|---|---|---|
![]() | ADVANCED : 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 | ||
| data | property |
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
| 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.
Parameterstype:String | |
data:Object (default = null) | |
bubbles:Boolean (default = false) | |
cancelable:Boolean (default = false) |
| clone | () | method |
override public function clone():EventReturns
Event |
| ENDED | Constant |
public static const ENDED:String = endedThis event is fired when a BasicPhysics object stops.
| STARTED | Constant |
public static const STARTED:String = startedThis event is fired when a BasicPhysics object starts.
| UPDATED | Constant |
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