Update Loader.as

Stub `flash.display.Loader.unload`
This commit is contained in:
Lord-McSweeney 2022-12-19 13:02:29 -08:00 committed by Aaron Hill
parent c7ba2d4e87
commit 5cf5c8d5e5
1 changed files with 5 additions and 0 deletions

View File

@ -6,6 +6,7 @@ package flash.display {
import flash.system.LoaderContext;
import flash.utils.ByteArray;
import flash.net.URLRequest;
import __ruffle__.log_warn;
private var _contentLoaderInfo: LoaderInfo;
@ -29,6 +30,10 @@ package flash.display {
public native function load(request: URLRequest, context: LoaderContext = null):void;
public native function loadBytes(data: ByteArray, context: LoaderContext = null):void;
public function unload():void {
log_warn("flash.display.Loader.unload - not yet implemented");
}
override public function addChild(child:DisplayObject):DisplayObject {
throw new IllegalOperationError("Error #2069: The Loader class does not implement this method.", 2069);