# True Zero?

**URL:** https://forum.kirupa.com/t/true-zero/200631
**Category:** flash
**Created:** [September 13, 2006, 8:30pm UTC](https://forum.kirupa.com/t/true-zero/200631 "2006-09-13T20:30:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ghjr](https://avatars.discourse-cdn.com/v4/letter/g/dec6dc/32.png) [@ghjr](https://forum.kirupa.com/u/ghjr)
#### Post date: [September 13, 2006, 8:30pm UTC](https://forum.kirupa.com/t/true-zero/200631/1 "2006-09-13T20:30:02Z")

</div>

On flash movies that are scaled to 100% I usually create 2 variables called trueZeroX and trueZeroY. These variables hold the \_x and \_y values which visually represent 0,0 once the stage is scaled and I calculate them by hardcoding the stage’s initial width and height:

```auto

var trueZeroX:Number = -(Stage.width-initialWidth)/2;
var trueZeroY:Number = -(Stage.height-initialHeight)/2;

```

Is this logical? I mean it works, but is there a better way to get the new 0,0 without having to hardcode in the initialWidth and initialHeight.

Cheers,  
ghjr
