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

The GroupReference class is meant to be used as an MXML tag to associate groups with level numbers in the LevelManager.

See also

com.pblabs.engine.core.LevelManager


Public Properties
 PropertyDefined By
  level : int
The level at which the group will be instantiated.
GroupReference
  levels : Array
The levels at which the group will be instantiated.
GroupReference
  name : String
The name of the group to instantiate with this reference.
GroupReference
Public Methods
 MethodDefined By
  
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, weakRef:Boolean = false):void
GroupReference
  
dispatchEvent(event:Event):Boolean
GroupReference
  
hasEventListener(type:String):Boolean
GroupReference
  
initialized(document:Object, id:String):void
GroupReference
  
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
GroupReference
  
willTrigger(type:String):Boolean
GroupReference
Property Detail
levelproperty
level:int

The level at which the group will be instantiated. If levels is set, this is ignored.

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


Implementation
    public function get level():int
    public function set level(value:int):void
levelsproperty 
levels:Array

The levels at which the group will be instantiated.

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


Implementation
    public function get levels():Array
    public function set levels(value:Array):void
nameproperty 
name:String

The name of the group to instantiate with this reference.

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


Implementation
    public function get name():String
    public function set name(value:String):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