I just ran into this issue. Apparently menu items refer only to
submenus. Menus without submenus are not considered menu items are
therefore do not respond to the itemClicked MenuEvent. However, they
will respond to the click MouseEvent. So it looks like you'll need 2
handlers - one for itemClicked and one for click.

-Mike
--- In [email protected], "shahlavi" <[EMAIL PROTECTED]> wrote:
>
> I have a menubar with menu items which have submenus and some that 
> don't. The submenus are firing the itemClicked event as expected, 
> however the menu items which don't have any submenus are not firing 
> any events at all! This is directly from the Flex 2 final docs: 
> 
> "itemClick (MenuEvent.ITEM_CLICK) Dispatched when a user selects an 
> enabled menu item of type normal, check, or radio. This event is not 
> dispatched when a user selects a menu item of type separator, a menu 
> item that opens a submenu, or a disabled menu item."
> 
> Here's what my XMLList looks like which I'm using as my dataProvider:
> 
> private var menubarXML:XMLList =
>                 <>
>                     <menuitem label="Local Areas">
>                         <menuitem label="Manage Designated Local 
> Areas" data="1A"/>
>                         <menuitem label="Manage Local Area Maps" 
> data="1B"/>
>                         <menuitem label="Manage Local Service Terms" 
> data="1C"/>
>                     </menuitem>
>                     <menuitem label="Record Admin">
>                         <menuitem label="Manage Reason Not To 
> Display" data="2A"/>
>                         <menuitem label="Manage Type Of Site" data 
> ="2B"/>
>                     </menuitem>
>                     <menuitem label="Admin">
>                         <menuitem label="Manage Accounts" data="3A"/>
>                         <menuitem label="Manage Personal Account" 
> data ="3B"/>
>                     </menuitem>
>                     <menuitem label="View" data="4" />
>                     <menuitem label="Area Switch" data="5"/>
>                     <menuitem label="Logout" data="6"/>
>                          
>                 </>;
> 
> As you can see there are nodes which don't have any children yet I'm 
> not recieving any sort of events from these at all.
>  
> Has anyone come across this issue at all? Any ideas on what I maybe 
> doing wrong?
> 
> Any help would be appreciated.
> 
> Thanks,
> 
> Farid
>






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to