-
1. Re: Loading font class fails when loader is being subloaded from app-storage://
flexzionist Jul 11, 2013 1:55 PM (in response to flexzionist)Solution found at: http://code.google.com/p/maashaack/wiki/ApplicationDomain
var urlloader:URLLoader = new URLLoader();
urlloader.dataFromat = URLLoaderDataFormat.BINARY;
urlloader.addEventListener( Event.COMPLETE, onComplete );
urlloader.load( new URLRequest( "other.swf" ) );
var onComplete:Function = function( event:Event ):void
{
var loader:Loader = new Loader();
var AD:ApplicationDomain = ApplicationDomain.currentDomain;
//with loadBytes(0 -- the checkPolicyFile and securityDomain properties of the LoaderContext object do not apply.
//var SD:SecurityDomain = SecurityDomain.currentDomain;
var context:LoaderContext = new LoaderContext( false, AD );
context.allowLoadBytesCodeExecution = true;
loader.loadBytes( urlloader.data, context );
}
