Knowledge Base


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

Accordion (Tree) Menu V3

(views: 18273)

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: 4160)

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;
    }
}


User Comments

RollOver with Timeline
posted by jumpFer77 on 2008-06-07

Hi, It's possible to have a rollover with timeline? It would be a timeline that start with rollover event and stop in the end of timeline and then when the user makes a rollover again the timeline starts again in frame 1. Not a loop like other post i have seen. I have been trying to do it but i dont know how to access to the movieclips that have the different states.
Thanks for the help.
RollOver with Timeline
posted by negush on 2008-06-09

If you mean to have menu item states with animation, here is a knowledge item for that situation: http://www.jumpeyecomponents.com/knowledgebase/Accordion-%28Tree%29-Menu-V3
/Animated-items~129/
type not found error
posted by kagamushu on 2010-02-18

Hello,
i tried this code but i get the following error:
1046: Type was not found or was not a compile-time constant: AccordionMenuEvents.
import AccordionMenuEvents
posted by florodebat on 2010-02-26

kagamushu,

you will have to import the AccordionMenuEvents in order to get rid of that error message. Just add the bellow line of code into the Actions Panel and everything should work fine.

import com.jumpeye.Events.AccordionMenuEvents;


Login to post your comment login to post your comment

Other questions in this item:

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


Back

Knowledge Base Search

Enter keywords below:
Advanced Search
FlashEff 2.0
Create professional flash photo slideshows online

FREE Flash Stuff

Check out these free, fully functional AS3.0 Flash components by Jumpeye:

FlashEff 2.0 Free
(free for non-commercial use)

JC Panorama
(free for non-commercial use)

JC Play List
(fully free)

Basic Menu Pack V3
(free AS3 version)

MCTE V3
(free AS3 version)

JC Player
(free for non-commercial use)

JC Flash Map
(free for non-commercial use)

Flash Bookmarks
(fully free)

ActionScript Bridge AS2-AS3
(fully free)

JS Charts
(free for non-commercial use)

Free Trial Versions

The trial versions do have a major limitation. They will ONLY run into debugger flash player versions, such as the Flash IDE player and the activeX FP used by developers.

Switch from Free Trial version to Full version.

You can switch from Trial to Full versions in a blink of an eye.
See this tutorial in order to find out how.

We accept Google Checkout

Google Checkout Acceptance Mark

Secured by VeriSign