Package | cc.cote.airbag |
Class | public class AirBagEvent |
Inheritance | AirBagEvent ![]() |
Since : | 1.0a rev1 |
AirBagEvent
object is dispatched by the AirBag
object when it
performs its collision detection routine on ENTER_FRAME
.
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] A vector of Collision objects representing each collision detected. | AirBagEvent |
Method | Defined By | ||
---|---|---|---|
AirBagEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, collisions:Vector.<Collision> = null)
Creates a new AirBagEvent object. | AirBagEvent |
Constant | Defined By | ||
---|---|---|---|
COLLISION : String = collision [static]
The COLLISION constant defines the value of the type property
of a collision event object. | AirBagEvent | ||
DETECTION : String = detection [static]
The DETECTION constant defines the value of the type property
of a detection event object. | AirBagEvent |
collisions | property |
collisions:Vector.<Collision>
[read-only] A vector of Collision
objects representing each collision detected.
public function get collisions():Vector.<Collision>
AirBagEvent | () | Constructor |
public function AirBagEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, collisions:Vector.<Collision> = null)
Creates a new AirBagEvent
object. AirBagEvent
is, basically, a
standard flash.events.Event
with the simple addition of the
collisions
property which holds a Vector
of
Collision
objects (if appropriate).
type:String — Type of the event. Can be AirBagEvent.COLLISION or
AirBagEvent.DETECTION .
| |
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 ) — A Vector of Collision objects for each
detected collisions.
|
COLLISION | Constant |
public static const COLLISION:String = collision
The COLLISION
constant defines the value of the type
property
of a collision
event object.
DETECTION | Constant |
public static const DETECTION:String = detection
The DETECTION
constant defines the value of the type
property
of a detection
event object.