Solved

Flex - multi level context menu

Posted on 2010-11-10
2
838 Views
Last Modified: 2012-05-10
Hi All,

I'd like some help/direction on creating a multi level context menu.

I have got the code for adding items to the main menu working:
var item:ContextMenuItem;
item = new ContextMenuItem("MyMenu",true,true,true);
item.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,myMenu);
Application.application.contextMenu.customItems.push(item);

Open in new window


Problem now is that I want a few levels to the context menu:
MAIN -> Item 1
              Item 2
              Category 1 ->
                        Item c1-1
                        Item c1-2
              Category 2 ->
                        Item c2-1
                        Item c2-2
                        Item c2-3

Open in new window



Any help and examples appreciated.

Thanks
           
0
Comment
Question by:Pete2003
  • 2
2 Comments
 
LVL 17

Expert Comment

by:deepanjandas
Comment Utility
As far as I know, You cannot do multi-level content menu in Flash.

Warm Regards
Deepanjan Das
http://deepanjandas.wordpress.com
0
 
LVL 17

Accepted Solution

by:
deepanjandas earned 500 total points
Comment Utility
Instead you may use the Menu Component and open it up on normal left click and do a multilevel hierarchy.

Warm Regards
Deepanjan Das
http://deepanjandas.wordpress.com
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
Find out what Office 365 Transport Rules are, how they work and their limitations managing Office 365 signatures.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now