package flash.system; #if (!display && flash)


import openfl.display.DisplayObjectContainer;


extern class LoaderContext {
	
	
	@:require(flash10_1) public var allowCodeImport:Bool;
	@:require(flash10_1) public var allowLoadBytesCodeExecution:Bool;
	public var applicationDomain:ApplicationDomain;
	public var checkPolicyFile:Bool;
	
	#if flash
	@:require(flash11) public var imageDecodingPolicy:flash.system.ImageDecodingPolicy;
	#end
	
	#if flash
	@:require(flash11) public var parameters:Dynamic;
	#end
	
	#if flash
	@:require(flash11) public var requestedContentParent:DisplayObjectContainer;
	#end
	
	public var securityDomain:SecurityDomain;
	
	
	public function new (checkPolicyFile:Bool = false, applicationDomain:ApplicationDomain = null, securityDomain:SecurityDomain = null):Void;
	
	
}


#else
typedef LoaderContext = openfl.system.LoaderContext;
#end