# Full screen flash preserving locations

**URL:** https://forum.kirupa.com/t/full-screen-flash-preserving-locations/301130
**Category:** flash
**Created:** [December 3, 2009, 7:31pm UTC](https://forum.kirupa.com/t/full-screen-flash-preserving-locations/301130 "2009-12-03T19:31:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![bonder](https://avatars.discourse-cdn.com/v4/letter/b/f6c823/32.png) [@bonder](https://forum.kirupa.com/u/bonder)
#### Post date: [December 3, 2009, 7:31pm UTC](https://forum.kirupa.com/t/full-screen-flash-preserving-locations/301130/1 "2009-12-03T19:31:12Z")

</div>

Let’s say we have a bar stretching across the whole top of the screen with the following code:  
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();  
};  
Then, lets say we have text inside of this movieclip on the right and left sides… How do you anchor this text to each side without it scaling?
