Class com.maheshj.UI.core.DisplayObject

Description

A generic class that extends the functionality of a movieclip to implement custom width, height, resize, scale, visible functionalities. This class can be used to implement any functionality that involves sequencing a transition based on the four states of the display object (init, enter, exit, destroy). This also has a built in XML processing functionality. All you have to do is override and implement the processXML method, set the XML file using the xmlFile property and finally call the loadXML method.

Field Index

addEventListener, dispatchEvent, removeEventListener, scale, visible, xmlFile

Method Index

new DisplayObject()
destroy(), disable(), enable(), enter(), exit(), getDimensions(), init(), loadXML(), resize()

Constructor Detail

DisplayObject

public function DisplayObject()

Field Detail

addEventListener

public addEventListener:Function

removeEventListener

public removeEventListener:Function

dispatchEvent

public dispatchEvent:Function

xmlFile

public xmlFile:String [Write Only]

scale

public scale:Number [Write Only]

visible

public visible:Boolean

Method Detail

init

public function init()

enter

public function enter()

exit

public function exit()

destroy

public function destroy()

getDimensions

public function getDimensions():Dimensions

resize

public function resize(w:Number, h:Number)

enable

public function enable()

disable

public function disable()

loadXML

public function loadXML()