externs: update AIR display externs for Haxe 4.3
This commit is contained in:
@@ -2,9 +2,15 @@ package flash.display;
|
||||
|
||||
extern class Loader extends DisplayObjectContainer
|
||||
{
|
||||
#if (haxe_ver < 4.3)
|
||||
var content(default, never):DisplayObject;
|
||||
var contentLoaderInfo(default, never):LoaderInfo;
|
||||
@:require(flash10_1) var uncaughtErrorEvents(default, never):flash.events.UncaughtErrorEvents;
|
||||
#else
|
||||
@:flash.property var content(get, never):DisplayObject;
|
||||
@:flash.property var contentLoaderInfo(get, never):LoaderInfo;
|
||||
@:flash.property @:require(flash10_1) var uncaughtErrorEvents(get, never):flash.events.UncaughtErrorEvents;
|
||||
#end
|
||||
function new():Void;
|
||||
function close():Void;
|
||||
function load(request:flash.net.URLRequest, ?context:flash.system.LoaderContext):Void;
|
||||
@@ -14,4 +20,10 @@ extern class Loader extends DisplayObjectContainer
|
||||
#end
|
||||
function unload():Void;
|
||||
@:require(flash10) function unloadAndStop(gc:Bool = true):Void;
|
||||
|
||||
#if (haxe_ver >= 4.3)
|
||||
private function get_content():DisplayObject;
|
||||
private function get_contentLoaderInfo():LoaderInfo;
|
||||
private function get_uncaughtErrorEvents():flash.events.UncaughtErrorEvents;
|
||||
#end
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user