PackageBox2DAS.Common
Classpublic class b2EventDispatcher
Inheritanceb2EventDispatcher Inheritance b2Base Inheritance Object
Implements flash.events.IEventDispatcher
Subclasses b2Fixture, b2Joint, b2World



Public Properties
 PropertyDefined By
 Inheritedbytes : ByteArray
[static]
b2Base
  dispatcher : IEventDispatcher
b2EventDispatcher
 Inheritedinitialized : Boolean = false
[static]
b2Base
 Inheritedlib : Object
[static]
b2Base
 Inheritedloader : CLibInit
[static]
b2Base
 Inheritedmem : MemUser
[static]
b2Base
 Inherited_ptr : Number
b2Base
 Inheritedvalid : Boolean
[read-only] Does the object point to a C++ equivalent (i.e.
b2Base
Public Methods
 MethodDefined By
  
b2EventDispatcher(d:IEventDispatcher = null)
b2EventDispatcher
  
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
b2EventDispatcher
 Inherited
deref(adr:int):*
[static] dereference a C++ pointer or AS3_Val that is pointing to an AS3 object.
b2Base
 Inherited
destroy():void
Destroy base function just sets _ptr = 0.
b2Base
  
dispatchEvent(evt:Event):Boolean
b2EventDispatcher
 Inherited
getArr():Array
[static]
b2Base
  
hasEventListener(type:String):Boolean
b2EventDispatcher
 Inherited
initialize(defs:Boolean = true):void
[static] Initialize the C++ module.
b2Base
 Inherited
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
 Inherited
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
Property Detail
dispatcherproperty
public var dispatcher:IEventDispatcher

Constructor Detail
b2EventDispatcher()Constructor
public function b2EventDispatcher(d:IEventDispatcher = null)



Parameters
d:IEventDispatcher (default = null)
Method Detail
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

Returns
Boolean
hasEventListener()method 
public function hasEventListener(type:String):Boolean

Parameters

type:String

Returns
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

Returns
Boolean