I have an swf in which objects go outside the boundaries of the stage (but are properly masked). Whenever I externally load this swf into a container it scales down to fit in the objects located off stage. EX:
[URL=“http://img704.imageshack.us/i/example2s.jpg/”]
I have tried removing the objects outside the boundaries and the stage does not shrink the image. The container is the same dimensions as the external swf.
Here is my code for main stage; the external swf code does not adjust the scale, but if you need to see it, I will post. Any help will be extremely appreciated.
function open_puzzle(openSWF:String)
{
//Load SWF
container = new MovieClip();
addChild(container);
var url:URLRequest = new URLRequest(openSWF);
var loader:Loader = new Loader();
loader.load(url);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
}
function completeHandler(event:Event):void
{
container.addChild(event.target.content);
container.height = stage.stageHeight - 20;
container.width = (stage.stageHeight - 20) * 1.333;
container.x = stage.stageWidth / 2 - container.width / 2;
container.y = stage.stageHeight / 2 - container.height / 2;
stage.addEventListener(Event.RESIZE, resizeHandler);
//container.addEventListener(MouseEvent.CLICK, exitSWF);
}
//Adjust SWF if stage is resized
function resizeHandler(event:Event):void
{
container.height = stage.stageHeight - 20;
container.width = (stage.stageHeight - 20) * 1.33;
container.x = stage.stageWidth / 2 - container.width / 2;
container.y = stage.stageHeight / 2 - container.height / 2;
}