In my project i used this below function
public function createIconMenu():NativeMenu{
var iconMenu:NativeMenu = new NativeMenu();
iconMenu.addItem(new NativeMenuItem("", true));//Separator
if(NativeApplication.supportsSystemTrayIcon){
iconMenu.addItem(showCommand);
showCommand.addEventListener(Event.SELECT, onShowCommand);
iconMenu.addItem(new NativeMenuItem("", true));//Separator
var exitCommand: NativeMenuItem = iconMenu.addItem(new NativeMenuItem("Exit"));
exitCommand.addEventListener(Event.SELECT, exit);
}
return iconMenu;
}
public function exit(event:Event):void{
NativeApplication.nativeApplication.exit();
}
but on this public function exit shows error like 1024: Overriding a function that is not marked for override.
what did i wrong code ? . could u explain me ?