3 Replies Latest reply on Dec 7, 2006 4:20 PM by SD_Sr.ISA

    MenuBar Problem

    SD_Sr.ISA Level 1
      Anyone know how to have the itemClick event work for the top level.
      In the example below the top level "For Sale" dosn't work.

      <mx:MenuBar id="mbMain" buttonMode="true" itemClick="menuHandler(event)" dataProvider="{menuBarCollection}"/>

      private function m_funInit():void
      //initialize the MenuBar control
      menuBarCollection = new XMLListCollection(menubarXML);

      public var menuBarCollection:XMLListCollection;
      private var menubarXML:XMLList =

      <menuitem label="Manufactures">
      <menuitem label="Kawasaki" data=" http://www.kawasaki.com/"/>
      <menuitem label="Honda" data=" http://www.honda.com/"/>
      <menuitem label="Suzuki" data=" http://www.suzukicycles.com"/>
      <menuitem label="Yamaha" data=" http://www.yamaha-motor.com"/>
      <menuitem label="KTM" data=" http://www.ktmusa.com"/>
      <menuitem label="Husqvarna" data=" http://www.husqvarnausa.com/"/>

      <menuitem label="For Sale" data="forsale.asp">

      Thanks for the help!