My account
Shopping cart
Knowledge base
Support


Usage and Code Samples for Accordion Menu Pro V1 Flash Component


Accordion Menu Pro V1 Usage

Here is an XML demo of how it has to be written in order to complete AccordionMenuPro integration with your flashmovie:
accordionmenu.xml

The 'title' attribute holds the title of the menu and the 'opened' attribute specify if a compartment will load opened or closed first.(omit this attribute for closed position)

The 'functionName' attribute holds the function name to be called from the menu. To pass parameters from XML to this function please write the functionName attribute as folows: functionName="the_function(param1,param2,param3)"
You can pass as many parameters you want using this technique.

There are 4 events broadcasted: onLoadXML , onOpenItem, onCloseItem and onReleaseSubmenu (with params: menu, submenu). Use a listener object attached to the accordion in order to retrieve these events.

We also included a function for opening/closing an item without clicking over it:
accordionInstance.openItem(itemNumber).

Change the parameters in order to get the most out of the Accordion Menu Pro. Resizing the component on stage will change the width of the menu. (text is not masked, so keep your text length smaller than the menu).

If you feel that this component does not meet the features described as you need it to, let us know. We'll try to improve the behaviors and functionality for the Version 2.0 Any usage method other than the one described before is purely speculative, and does not meet our recommendation of the use of product.

Code Samples

listener = new Object();
amenu.addListener(listener);
listener.onLoadXML = function() {
trace("accordion menu loaded")
}

listener.onOpenItem = function(menuNo) {
trace(menuNo+"menu opened")
}

listener.onCloseItem = function(menuNo) {
trace(menuNo+"menu closed")
}

listener.onReleaseSubmenu = function(menuNo, submenuNo) {
trace(menuNo+submenuNo+" menu clicked")
}