Solved

Flex - multi level context menu

Posted on 2010-11-10
2
848 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
ID: 34100730
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
ID: 34100738
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
We need a new way to communicate time sensitive or critical info.   The best part of my role at xMatters is visiting our clients all over the world to learn about how they operate their businesses, share insights that xMatters has gleaned across…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

920 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