0
我想充分Flash網站在任何瀏覽器的大小動態調整大小動態適應。調整大小的問題與任何瀏覽器尺寸
如果瀏覽器獲得比現場MC應限制以適應瀏覽器小。 (EX:1440x900)我現在擁有98%的時間,但是當我切換到更大的屏幕尺寸時,它會從左到右微調(菜單,徽標等)(Ex :1680×1050)
有誰知道如何解決這個問題?
positionScenesOnStage();
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.addEventListener(Event.RESIZE, handleObjectsOnStage);
private function handleObjectsOnStage(event:Event):void
{
positionScenesOnStage();
}
private function positionScenesOnStage():void
{
backgroundMC = new bgMC();
backgroundMC.x = 0;
backgroundMC.y = 0;
backgroundMC.width = stage.stageWidth;
backgroundMC.height = stage.stageHeight;
addChild(backgroundMC);
logo_mc = new LogoMC();
logo_mc.x = stage.stageWidth - 1420;
logo_mc.y = stage.stageHeight - 700;
addChild(logo_mc);
menuContainer = new MenuContainerMC();
menuContainer.x = stage.stageWidth - 400;
menuContainer.y = stage.stageHeight - 680;
addChild(menuContainer);
}