I am loading external swf’s inside content_2 and when i resize my browser the external content OR content_2 disappears. Can someone help me as to what I need to do to stop this. I’ve tried adding an onresize function but that does not work. Here my as3 code:
scroll_sb2.scrolling("content_2", "area_2", 0.18); // Range from 0.00 to 1.00
stage.addEventListener(Event.RESIZE, resizeHandler);
function resizeHandler(e:Event):void
{
scroll_sb2.x = stage.stageWidth - scroll_sb2.width - 2;
scroll_sb2.y = 0;
scroll_sb2.height = stage.stageHeight;
area_2.x = stage.stageWidth/2 - area_2.width/2;
area_2.y = stage.stageHeight/2 - area_2.height/2;
area_2.y = 0;
area_2.height = stage.stageHeight;
content_2.x = stage.stageWidth/2 - content_2.width/2;
content_2.y = stage.stageHeight - content_2.height; // comment this line if you whant to remove the carrusel affect on resize browser
backgroundMC.x=0;
backgroundMC.y=0;
backgroundMC.width=stage.stageWidth;
backgroundMC.height=stage.stageHeight;
downbg_mc.x = 0;
downbg_mc.y = 0;
downbg_mc.width = stage.stageWidth;
}
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.dispatchEvent(new Event(Event.RESIZE));
var mem:String = Number ( System.totalMemory / 2048 / 2048 ).toFixed ( 2 ) + 'Mb';
trace ( mem );