I’m currently working on a portfolio site,
which, among other things, loads external swf files into the stage.
The problem starts when I load a 400x300 swf file into the stage, which is 900x800.
The result is that I get all objects which are outside the stage area in the loaded swf, on my main stage.
I tried everything from changing the width and the height to loading it into a movieclip.
It’s always the same, I get all the elements from outside the stage of the loaded swf (if I try to change the width/height, the objects outside the scene still remain)
This is the code I’m using to load the external AS2 swf:
function startVideo()
{
var request:URLRequest = new URLRequest("test.swf");
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loadProgress);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
loader.load(request);
}
function loadProgress(event:ProgressEvent):void{
var percentLoaded:Number = event.bytesLoaded/event.bytesTotal;
trace(percentLoaded);
}
function loadComplete(event:Event):void{
trace("Complete");
}
startVideo();
What am I doing wrong?