Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-18349

AIR NativeMenuItem not responding to Events

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 3.2 (Release)
    • None
    • None
    • Affected OS(s): Mac
      Affected OS(s): Mac OS 10.5
      Browser: Firefox 3.x
      Language Found: English

    Description

      Steps to reproduce:
      <?xml version="1.0" encoding="utf-8"?>
      <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"
      layout="absolute"
      applicationComplete="init()"
      >
      <mx:Script>
      <![CDATA[
      import mx.controls.FlexNativeMenu;

      private function init():void{

      var baseMenu:NativeMenu = new NativeMenu();

      var menuItemEng:NativeMenuItem = new NativeMenuItem("English");
      var menuItemEs:NativeMenuItem = new NativeMenuItem("Spanish");
      var menuItemDe:NativeMenuItem = new NativeMenuItem("German");
      var menuItemNl:NativeMenuItem = new NativeMenuItem("Dutch");

      baseMenu.addItem(menuItemEng);
      baseMenu.addItem(menuItemEs);
      baseMenu.addItem(menuItemDe);
      baseMenu.addItem(menuItemNl);

      baseMenu.addEventListener(Event.SELECT,selectHandler);
      menuItemDe.addEventListener(Event.SELECT, selectHandler);
      menuItemDe.addEventListener(Event.DISPLAYING,selectHandler);
      menuItemDe.addEventListener(Event.ACTIVATE, selectHandler);

      if(NativeApplication.supportsMenu)

      { this.nativeApplication.menu = baseMenu; }

      if(NativeWindow.supportsMenu)

      { this.nativeWindow.menu = baseMenu; }

      }
      private function selectHandler(event:Event):void

      { trace(event.target.label); }

      ]]
      >
      </mx:Script>
      </mx:WindowedApplication>

      Actual Results:
      Never responds to events.

      Expected Results:

      Workaround (if any):

      Attachments

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: