Class imagegal.MainMenuItem

Description

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

MenuItemClicked - dispatched when the a menu item is clicked.

Field Index

xmlPath

Method Index

new MainMenuItem()
addEventListener(), init(), registerListener(), removeEventListener()

Constructor Detail

MainMenuItem

public function MainMenuItem()

Field Detail

xmlPath

public xmlPath:String [Read Only]
Use this property to get the path of the xml file that is to be loaded when the menu item is clicked.

Method Detail

init

public function init(title, file)

Used to initialise the menu item with the title and the xml file it should load.

Parameters

title- the title that shows up on the menu item
file- the path to xml file that is to be loaded when the menuitem is clicked

addEventListener

public function addEventListener()

removeEventListener

public function removeEventListener()

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