Solved

Flex - multi level context menu

Posted on 2010-11-10
2
863 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

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…
The world seems to conceive of a curious bubble separating IT from “the business.”  More so than just about any other pursuit in the commercial world, people think of IT as some kind of an island.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

730 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