 import flash.display.Loader;
 import flash.events.Event;
 import flash.events.IOErrorEvent;
+import flash.events.SecurityErrorEvent;
 import flash.net.URLRequest;
 import flash.system.ApplicationDomain;
 import flash.system.LoaderContext;

                handleSuccess(onSuccess, loader);
            });
            loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onFail);
            loadExecer(loader, context);
        });
    }

    protected function submitLoader (exec :Executor, loadExecer :Function) :Future {
        if (exec == null) exec = new Executor();
        const context :LoaderContext = new LoaderContext();
        context.allowCodeImport = true;
        if (_useSubDomain) {
            context.applicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain);
        } else {
