Full Screen Flash preserving location of movieclips
Let's say we have a bar stretching across the whole top of the screen with the following code:
import flash.display.Sprite;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT
stage.addEventListener(Event.RESIZE, resizeHandler);
//function to handle background image resize.
function setBackground() {
this.width = stage.stageWidth;
}
setBackground();
function resizeHandler(event:Event):void {
setBackground();
};