Knowledge Base |
Accordion (Tree) Menu V3
Accordion Menu V3 and Accordion Tree Menu V3 are xml flash accordion menus featuring customized states, customized transitions and tweens. Here are all known issues for Accordion Menu V3 and Accordion Tree Menu V3, they should be similar, since basically it is the same component. If you have any questions that you think we should discuss here please let us know.
Go to different frames by pressing a menu item
import com.jumpeye.Events.AccordionMenuEvents;
// Listen for the event dispatched when a menu item is pressed ().
accTree.addEventListener(AccordionMenuEvents.ITEM_PRESS, pressHandler);
function pressHandler(evtObj:AccordionMenuEvents):void {
// We are accessing the 'frame' property on the child object and call
// the useFrame() function that will make use of the frame variable.
var frame:Object = (evtObj.item.frame != undefined) ? evtObj.item.frame : 0;
useFrame(frame);
}
// The frame in the xml file cn be identified by its number or label, so
// the parameter passed to the useFrame() function, does not have an exact
// type.
function useFrame(frame:Object):void {
frameNumber.text = "frame "+frame;
gotoAndStop(frame);
}