# Resize problem

**URL:** <https://forum.kirupa.com/t/resize-problem/296312>\
**Category:** Uncategorized\
**Created:** [September 13, 2009, 10:31am UTC](https://forum.kirupa.com/t/resize-problem/296312 "2009-09-13T10:31:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![abrarshf](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@abrarshf](https://forum.kirupa.com/u/abrarshf)\
**Post date:** [September 13, 2009, 10:31am UTC](https://forum.kirupa.com/t/resize-problem/296312/1 "2009-09-13T10:31:31Z")

</div>

hi dears,  
How to make flash “scaleable” in browse but maintain …

i am writing that code but swf file is spoiling  
my stage size is w= 1000, H=590

var stageHandler:Object = new Object();  
stageHandler.onResize = resizeStuff;  
Stage.addListener(stageHandler);  
function resizeStuff() {  
bg.\_width = Stage.width;  
bg.\_height = Stage.height;  
body.\_width = Stage.width;  
body.\_height = Stage.height;  
newXScale = (Stage.width/1000)\*100;  
newYScale = (Stage.height/590)\*100;  
myPage\_mc.\_xScale = newXScale;  
myPage\_mc.\_yScale = newYScale;  
}
