# Stage.scale question

**URL:** https://forum.kirupa.com/t/stage-scale-question/170094
**Category:** flash
**Created:** [November 22, 2005, 6:59pm UTC](https://forum.kirupa.com/t/stage-scale-question/170094 "2005-11-22T18:59:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Grimshaw](https://avatars.discourse-cdn.com/v4/letter/g/439d5e/32.png) [@Grimshaw](https://forum.kirupa.com/u/Grimshaw)
#### Post date: [November 22, 2005, 6:59pm UTC](https://forum.kirupa.com/t/stage-scale-question/170094/1 "2005-11-22T18:59:05Z")

</div>

I am trying to get the same background scaling effect as yugo site at.

[http://amana.jp/company/tsutawaru/](http://amana.jp/company/tsutawaru/)

I know how to work with listeners but I’m not quite getting it right. I need to calculate a percentage.

```auto
//
Stage.scaleMode = "noScale";
Stage.align = "TL";
//
function centerIt() {
	pic._x = 0;
	pic._y = 0;
	pic._width = Stage.width;
	pic._height = Stage.height;
}
//Size Background and keep it sized correctly
//
var stageListener:Object = new Object();
stageListener.onResize = function() {
	centerIt();
};
Stage.addListener(stageListener);
stageListener.onResize();

```
