Halo,
very new to this site, so would first like to “pleased to meat you, my name is michael, very much appreciate your forum, hope to be somewhat helpful in the future”
I am having problems that i hope someone can help me solve.
I made an as3 website that repositions on browser resize - for that i put all the site’s contents into a main mc with the following code
function resizeHandler(e:Event):void {
main_mc.x = (main_mc.stage.stageWidth / 2) - (main_mc.width / 2);
}
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.addEventListener(Event.RESIZE, resizeHandler);
stage.dispatchEvent(new Event(Event.RESIZE));
i need to load an external as2 swf into a specific position. i tried to load using
var request:URLRequest = new URLRequest("A.swf");
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
function loadComplete(event:Event):void {
}
loader.load(request);
this.addChild(loader);
i am having several issues -
A: i dont get how to load the swf into the position i want, and since this is an as2 swf i want to load, all examples on how to load swf into a specific mc didnt work for me.
B: when i resize the browser the swf and the rest of the items that were in the main mc with it disappear.
What should i do to make the loaded swf appear centered?
Any help greatly appreciated,
thanks,
michael