Class template.MainMenuItem

Description

This is the main menu item class for the template. The following events are dispatched by this class:

MenuItemClicked - dispatched when the a menu item is clicked.

Field Index

ID, itemObj

Inherited from DisplayObject

Method Index

new MainMenuItem()
enter(), init(), registerListener(), triggerRelease()

Inherited from GenericMenuItem

Inherited from DisplayObject

Constructor Detail

MainMenuItem

public function MainMenuItem()

The constructor.

Field Detail

itemObj

public itemObj:MenuItemInitData [Read Only]
Use this property to get the menu item variables

ID

public ID:String [Read Only]
Use this property to get the unique ID of the menu item

Method Detail

init

public function init(initobj:MenuItemInitData)

Method used to initialize all the variables, functionality, etc.

Parameters

initobj- the object containing he required variables for the menu item to initialize

Overrides

init() in com.maheshj.UI.core.DisplayObject

registerListener

public function registerListener(mc:MovieClip)

Use this method to register any movieclip as a listener to the events of this class.

Parameters

mc- the movieclip that is to be registered

enter

public function enter()

call this function to make the menu item appear

triggerRelease

public function triggerRelease()

Use this function to trigger a MenuItemClicked event without actually clicking on the menu item