  */
 public class EmbeddedSwfLoader extends EventDispatcher 
 {
-    public function EmbeddedSwfLoader ()
+    public function EmbeddedSwfLoader (useSubDomain :Boolean = false)
     {
+        _useSubDomain = useSubDomain;
         _loader = new Loader();
         _loader.contentLoaderInfo.addEventListener(Event.COMPLETE, dispatchEvent);
         _loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, dispatchEvent);

    public function load (byteArray :ByteArray) :void
    {
        var context :LoaderContext = new LoaderContext();
        context.applicationDomain = ApplicationDomain.currentDomain;
        _loader.loadBytes(byteArray, context);
    }


    }

    protected var _loader :Loader;
    protected var _useSubDomain :Boolean;
}
}
