[flexcoders] Re: why the air app can not see the nativeMenu

2008-12-19 Thread valdhor
Are you using Windows?


--- In flexcoders@yahoogroups.com, markflex2007 markflex2...@...
wrote:

 Hi,
 
 I did this,but why I can not see the menu.Thanks for your help.
 
 
 mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute creationComplete=init()
 mx:Script
   ![CDATA[
   
private function init():void{

var root:NativeMenu = new NativeMenu(); 
var editMenuItem:NativeMenuItem = new NativeMenuItem(hello);
 
editMenuItem = root.addItem(editMenuItem);  
  NativeApplication.nativeApplication.menu =  root;
   
   }
   ]]
 /mx:Script
   
 /mx:WindowedApplication





[flexcoders] Re: why the air app can not see the nativeMenu

2008-12-19 Thread sunild999999
I don't see a problem w/your example.

Note that on Mac OS X the native menu is not attached to the application 
window, like it 
would be on a Windows application.

HTH,
Sunil