Try to fix ContextMenuItem/NativeMenuItem for Flash/AIR (close #1108)

This commit is contained in:
Joshua Granick
2017-11-13 13:13:27 -08:00
parent c015879492
commit 20c9d4a0ac
2 changed files with 4 additions and 9 deletions

View File

@@ -1,12 +1,9 @@
package flash.display;
@:require(flash10_1) extern class NativeMenuItem extends flash.events.EventDispatcher {
#if air
var checked : Bool;
var data : Dynamic;
#end
var enabled : Bool;
#if air
var isSeparator(default,never) : Bool;
var keyEquivalent : flash.ui.Keyboard;
var keyEquivalentModifiers : Array<flash.ui.Keyboard>;
@@ -15,10 +12,7 @@ package flash.display;
var mnemonicIndex : Int;
var name : String;
var submenu : NativeMenu;
#end
function new(#if air ?label : String="", ?isSeparator : Bool=false #end) : Void;
#if air
function new(?label : String="", ?isSeparator : Bool=false) : Void;
function clone() : NativeMenuItem;
override function toString() : String;
#end
}