Package | Box2DAS.Common |
Class | public class b2EventDispatcher |
Inheritance | b2EventDispatcher b2Base Object |
Implements | flash.events.IEventDispatcher |
Subclasses | b2Fixture, b2Joint, b2World |
Property | Defined By | ||
---|---|---|---|
bytes : ByteArray [static] | b2Base | ||
dispatcher : IEventDispatcher | b2EventDispatcher | ||
initialized : Boolean = false [static] | b2Base | ||
lib : Object [static] | b2Base | ||
loader : CLibInit [static] | b2Base | ||
mem : MemUser [static] | b2Base | ||
_ptr : Number | b2Base | ||
valid : Boolean [read-only]
Does the object point to a C++ equivalent (i.e. | b2Base |
Method | Defined By | ||
---|---|---|---|
b2EventDispatcher(d:IEventDispatcher = null) | b2EventDispatcher | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void | b2EventDispatcher | ||
deref(adr:int):* [static]
dereference a C++ pointer or AS3_Val that is pointing to an AS3 object. | b2Base | ||
destroy():void
Destroy base function just sets _ptr = 0. | b2Base | ||
dispatchEvent(evt:Event):Boolean | b2EventDispatcher | ||
getArr():Array [static] | b2Base | ||
hasEventListener(type:String):Boolean | b2EventDispatcher | ||
initialize(defs:Boolean = true):void [static]
Initialize the C++ module. | b2Base | ||
readVertices(adr:int, num:int):Vector.<V2>
Read C++ memory and convert it into a vertex array. | b2Base | ||
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void | b2EventDispatcher | ||
willTrigger(type:String):Boolean | b2EventDispatcher | ||
writeVertices(adr:int, v:Vector.<V2>):void
Write a vertex array of the format [new V2(x,y), new V2(x,y), ...] to C++ memory. | b2Base |
dispatcher | property |
public var dispatcher:IEventDispatcher
b2EventDispatcher | () | Constructor |
public function b2EventDispatcher(d:IEventDispatcher = null)
d:IEventDispatcher (default = null )
|
addEventListener | () | method |
public function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Parameters
type:String | |
listener:Function | |
useCapture:Boolean (default = false )
| |
priority:int (default = 0 )
| |
useWeakReference:Boolean (default = false )
|
dispatchEvent | () | method |
public function dispatchEvent(evt:Event):Boolean
Parameters
evt:Event |
Boolean |
hasEventListener | () | method |
public function hasEventListener(type:String):Boolean
Parameters
type:String |
Boolean |
removeEventListener | () | method |
public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Parameters
type:String | |
listener:Function | |
useCapture:Boolean (default = false )
|
willTrigger | () | method |
public function willTrigger(type:String):Boolean
Parameters
type:String |
Boolean |