Packagecom.pblabs.engine.mxml
Classpublic class TypeReference
InheritanceTypeReference Inheritance Object
Implements mx.core.IMXMLObject, flash.events.IEventDispatcher

The TypeReference class is meant to be used as an MXML tag to force inclusion of specific types in a project.

This is necessary because the Flex compiler will only include definitions of classes that are explicitly referenced somewhere in a project's codebase. Since PBE is heavily data driven with most objects being instantiated from XML, it is very likely that several components will not be compiled without the use of this class.



Public Properties
 PropertyDefined By
  type : Class
The class of the type to force a reference to.
TypeReference
Public Methods
 MethodDefined By
  
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, weakRef:Boolean = false):void
TypeReference
  
dispatchEvent(event:Event):Boolean
TypeReference
  
hasEventListener(type:String):Boolean
TypeReference
  
initialized(document:Object, id:String):void
TypeReference
  
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
TypeReference
  
willTrigger(type:String):Boolean
TypeReference
Property Detail
typeproperty
type:Class

The class of the type to force a reference to.

This property can be used as the source for data binding.


Implementation
    public function get type():Class
    public function set type(value:Class):void
Method Detail
addEventListener()method
public function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, weakRef:Boolean = false):void

Parameters

type:String
 
listener:Function
 
useCapture:Boolean (default = false)
 
priority:int (default = 0)
 
weakRef:Boolean (default = false)

dispatchEvent()method 
public function dispatchEvent(event:Event):Boolean

Parameters

event:Event

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

Parameters

type:String

Returns
Boolean
initialized()method 
public function initialized(document:Object, id:String):void

Parameters

document:Object
 
id:String

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