1 Reply Latest reply on Aug 8, 2007 7:36 AM by levancho

    MenuItem event won't fire

    Venkat Rao
      Hi I have the following menu item and the script to go with it. The itemCick event is not firing.

      <menuitem label="Blogs and News" selected="false" itemClick="itemClick(event);" />

      <mx:Script>
      <![CDATA[
      import mx.controls.Menu;
      import mx.events.MenuEvent;


      // The event listener for the itemClick event.
      private function itemClick(event:MenuEvent):void {
      currentState="news";
      test.text="click";
      }
      ]]>
      </mx:Script>
      I don't know what is happening.