I want to load an SWF file which is in external server and play it in client side. I am succeeding in that, but I am having an alignment problem when it gets loaded. I am using the following code:
import flash.display.*;
import flash.net.URLRequest;
var rect:Shape = new Shape();
rect.graphics.beginFill(0xFFFFFF);
rect.graphics.drawRect(0,0,1000,1000);
addChild(rect);
var ldr:Loader = new Loader();
ldr.mask = rect;
var url:String = "http://www.unknown.example.com/content.swf";
var urlReq:URLRequest = new URLRequest(url);
ldr.load(urlReq);
addChild(ldr);
It loads fine, but when I maximize the frame thevideo alignment is changing and only half of the video is visible on the screen.