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

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

See also

com.pblabs.engine.core.LevelManager


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

The filename of the level file to load with this reference.

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


Implementation
    public function get filename():String
    public function set filename(value:String):void
levelproperty 
level:int

The level at which the level file will be loaded. 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 level file will be loaded.

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


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