# Simple math problem

**URL:** <https://forum.kirupa.com/t/simple-math-problem/286704>\
**Category:** Uncategorized\
**Created:** [April 20, 2009, 1:37am UTC](https://forum.kirupa.com/t/simple-math-problem/286704 "2009-04-20T01:37:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jibble](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jibble/32/2265_2.png) [@jibble](https://forum.kirupa.com/u/jibble)\
**Post date:** [April 20, 2009, 1:37am UTC](https://forum.kirupa.com/t/simple-math-problem/286704/1 "2009-04-20T01:37:48Z")

</div>

i’ve run into so many problems using \_xscale and \_yscale that i’m going to try and re-approach my idea here… .

i’m scaling a box to the size of the browser using this code

```auto

targetClip._height = Stage.height-100;
targetClip._xscale = targetClip._yscale;

```

but when i try and use the box.\_width or box.\_height it’s spitting out the original width and height and not the new scaled width and height.

How can i calculate the new size of the scaled box and/or stage WITHOUT using \_xscale or \_yscale?
