Avatar of Pete2003
Pete2003

asked on 

Flex - multi level context menu

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
           
Apache Flex

Avatar of undefined
Last Comment
deepanjandas

8/22/2022 - Mon