My account
Shopping cart
Knowledge base
Support

Knowledge Base

Important! All new questions are usually answered within the next business day.

Accordion (Tree) Menu V3

(views: 38648)

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.



Use hand cursor on menu

(2008-06-05 - views: 14048)
Q: How can I enable the hand cursor when the mouse rolls over the Accordion Menu or Accordion Tree Menu component instance ?
A: Each menu is composed of items that represent display object containers, so the useHandCursor and buttonMode properties have to be set to true for each one of these items and also the mouse actions have to be disabled for the children objects.

Place the AccordionTreeMenu component on the stage, give it an instance name of accTreeMenu and, from the Component Inspector panel, set the xmlPath property to an appropriate .xml file. Next, bring up the Actions panel and place the next code in it:

import com.jumpeye.Events.AccordionMenuEvents;


// You have to listen to the AccordionMenuEvents.DRAW event, to set the
// useHandCursor property of the items, because this is the
// moment when the items already exist (the drawing is done on
// the second frame of the component so on the first frame
// there are no items defined).
accTreeMenu.addEventListener(AccordionMenuEvents.DRAW, completeHandler);

function completeHandler(evtObj:AccordionMenuEvents):void {
    // The number of menu items.
    var length:Number = evtObj.target.items.length;
    // Go through all the menu items and set the header elements to use the hand
    // cursor (also you have to disable mouse events for the items' children).
    for(var i:int = 0; i < length; i++) {
        evtObj.target.items[i].header.buttonMode = true;
        evtObj.target.items[i].header.useHandCursor = true;
        evtObj.target.items[i].header.mouseChildren = false;
    }
}


Other questions in this item

Call JavaScript from XML Open menu item pages into target - "_self" Load movies on item select Item description from XML Go to different frames by pressing a menu item Can I add a rollover sound? Add different styles for each main items. Insert a line break into label Change Text Color on Rollover Align header text to right Go to different frames by pressing a menu item Automatic Collapse Transparent background menu Adding icons Use hand cursor on menu hotwo: submenus already expanded on activation? Disable-Enable Accordion (Tree) Menu V3 How do I add the AccordionTreeMenuV3 on stage in runtime? Animated items Keep the Accordion (Tree) Menu V3 vertically aligned How do I add the AccordionTreeMenuV3AS3 from class file to stage Referencing item's textfield in Accordion (Tree) Menu V3 Underline On Rollover Autoexpand on Start Rotated text for menu items Add a fixed item under the menu Scene navigation Selected item level clickItem() and expandItem() do not execute actions of menu item Accordion Tree Menu expandAll() Step backwards and forwards through menu Letter kerning Change the position of the menu icons Menu Item visibility / disable how to change fontsize acc.height not updated? Get the type of the selected item Open menu upwards Accordion menu accurate size Spacing between menu items Change the position of the folder icons Children of a menu item Go To First Child When Select Top Level Menu Item Letter kerning Reference to text fields within menu items Title on multiple lines

Back