Dimensions of Loaded SWF vs. those of the Loader

Hello,

I want to use a generic “shell” to load other SWF files. (The shell will load in some needed classes, and then run the loaded SWF.)

The problem I have encountered, is that the loaded SWF loses its original dimensions (and frame rate and background), and instead inherits them from the loader.

What is the best way to get around this? I really want to use the dimensions of the loaded SWF and not the loader.

Here is how the “shell” loads the other SWF file:


var ldr:Loader = new Loader();
var url:String = "file:///c:/loadme.swf";
var urlReq:URLRequest = new URLRequest(url);

var addedDefinitions:LoaderContext = new LoaderContext();
addedDefinitions.applicationDomain = ApplicationDomain.currentDomain;

ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
ldr.load(urlReq, addedDefinitions);

function loadComplete(event:Event){
    ldr.contentLoaderInfo.removeEventListener(Event.COMPLETE, loadGameComplete);    
    addChild(ldr);
}

This causes the loaded SWF to run just fine, but it now uses the dimensions of the loader instead of its own. =(

Thanks!