Skip to main content
October 19, 2011
Answered

AIR 3.0 bug with native menu?

  • October 19, 2011
  • 2 replies
  • 708 views

Hi

I'm working on HTML/JS AIR application.

App loads native menu from XML, which is accessed from application using nativeWindow.menu.  It worked OK in 2.7 and earlier, but recently  AIR runtime was updated to 3.0 version and now nativeWindow.menu==null all the time (Mac OS). Could you take a look at this problem please?

BTW, I've another problem with menu on Mac OS (... but no such problem in OS Windws). Menu I created, which is loaded from XML, contains "File" and "Edit" items, but Mac OS creates another "File" and "Edit"  items in menu, so Application has 2 duplicated items in menu with different content - first one contains default OS items, but the second - items I'm adding from XML. Could you tell me how can I fix this please? Did I mii something?

Thanks in advance

This topic has been closed for replies.
Correct answer

Sorry guys, this wasn't a bug in AIR.

It's just necessary to check whether menu  is supported by nativeWindow or nativeApplication, instead of trying to access menu from nativeWindow all the time.

For OS windows -  nativeWindow, but for Mac - nativeApplication.

2 replies

Correct answer
October 28, 2011

Sorry guys, this wasn't a bug in AIR.

It's just necessary to check whether menu  is supported by nativeWindow or nativeApplication, instead of trying to access menu from nativeWindow all the time.

For OS windows -  nativeWindow, but for Mac - nativeApplication.

Participating Frequently
October 20, 2011

Seems like a bug of AIR 3.0. So could you please open a new bug report on this over at bugbase.adobe.com? Please include sample media, code, project or app to help us reproduce the problem. Finally, once the bug has been added would you mind posting back with the URL so that others affected can add their votes and comments?

October 25, 2011
Participating Frequently
October 26, 2011

Thanks you. We will investigate it soon.