E-merald web-engineering Flash components
E-merald web-engineering Contact Site map
 
Home Components Support Purchase
Components

ActionScript Events

InheritanceMovieClip > AccordionTreeMenu class

Events unique to the AccordionTreeMenu class

There are no events unique to the AccordionTreeMenu class. However, you can use the functions xmlOnLoadEvent and clickEvent (called from AccordionTreeMenu.as) as analogs of onLoadXML and click listeners, respectively.


clickEvent()

Usage

function clickEvent(index) {{
// your code here
}

Parameters

index   An integer indicating the zero-based index of the clicked menu item.

Returns

Nothing.

Description

Function; is called from the AccordionTreeMenu.as class when the mouse is clicked (pressed) over a menu item. This function is an analog of click listener.

Example

The following example, written on a frame of the Timeline, uses the clickEvent function to output a message:

function clickEvent(index:Number) {
trace("The index of the menu item that has been clicked is " + index);
}


xmlOnLoadEvent()

Usage

function xmlOnLoadEvent() {{
// your code here
}

Returns

Nothing.

Description

Function; is called from the AccordionTreeMenu.as class when the XML file is loaded and processed. This function is an analog of onLoadXML listener.

Example

The following example, written on a frame of the Timeline, uses the xmlOnLoadEvent function to output a message:

function xmlOnLoadEvent() {
trace("The XML file is loaded");
}

© E-MERALD. All rights reserved.
© Designed by Fox.net.ua.