Package | cc.cote.airbag |
Class | public class CollisionEvent |
Inheritance | CollisionEvent ![]() |
CollisionEvent
object is, typically, dispatched by the AirBag
object when it detects at least one collision during its ENTER_FRAME
detection
run. Please note that this object inherits properties and methods from
flash.events.Event
. You will have to look up
ActionScript's API documentation for those inherited elements.
See also
Property | Defined By | ||
---|---|---|---|
collisions : Vector.<Collision> [read-only] | CollisionEvent |
Method | Defined By | ||
---|---|---|---|
CollisionEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, collisions:Vector.<Collision> = null)
Creates a new CollisionEvent object. | CollisionEvent |
Constant | Defined By | ||
---|---|---|---|
COLLISIONS : String = collisions [static]
The COLLISIONS constant defines the value of the type property
of a collisions event object. | CollisionEvent |
collisions | property |
collisions:Vector.<Collision>
[read-only]
public function get collisions():Vector.<Collision>
CollisionEvent | () | Constructor |
public function CollisionEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, collisions:Vector.<Collision> = null)
Creates a new CollisionEvent
object. CollisionEvent
is,
basically, a standard flash.events.Event
with the simple addition of the
collisions
property which holds a Vector
of
Collision
objects.
type:String — Type of the event. The only value currently available is
CollisionEvent.COLLISIONS
| |
bubbles:Boolean (default = false ) — Determines whether the Event object participates in the
bubbling phase of the event flow.
| |
cancelable:Boolean (default = false ) — Determines whether the Event object can be canceled.
| |
collisions:Vector.<Collision> (default = null ) — The Vector of Collision objects for each
detected collisions.
|
COLLISIONS | Constant |
public static const COLLISIONS:String = collisions
The COLLISIONS
constant defines the value of the type
property
of a collisions
event object.