I donβt think that menu icons (OS system track icons in the Windows lexicon) are supported for OS X in AIR. You can check if this snippet works on your Mac:
if(NativeApplication.supportsDockIcon){ trace( "Dock icon IS supported" ); }else{ trace( "Dock icon IS NOT supported :(" ); } if (NativeApplication.supportsSystemTrayIcon){ trace( "System Tray icon IS supported" ); }else{ trace( "System Tray icon IS NOT supported :(" ); }
As read on the Adobe support site:
"Application icons are supported on both Mac OS X and Windows, although the conventions for using these icons on each system are slightly different. On Mac OS X, the application icon is a dock icon and is represented by an AIR DockIcon object. On Windows, the icon an application is a system tray icon and is represented by an AIR SystemTrayIcon object. An icon object for your application is created automatically. The type of object is determined according to the operating system on which the instance of your application is running. "
More information and sample code here: http://www.adobe.com/devnet/air/flex/quickstart/articles/stopwatch_dock_system_tray.html
source share