# Native stage width

**URL:** https://forum.kirupa.com/t/native-stage-width/281974
**Category:** flash
**Created:** [February 16, 2009, 10:15am UTC](https://forum.kirupa.com/t/native-stage-width/281974 "2009-02-16T10:15:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Tim\_John](https://avatars.discourse-cdn.com/v4/letter/t/b38774/32.png) [@Tim\_John](https://forum.kirupa.com/u/Tim_John)
#### Post date: [February 16, 2009, 10:15am UTC](https://forum.kirupa.com/t/native-stage-width/281974/1 "2009-02-16T10:15:34Z")

</div>

Hi, I’ve had a look for this answer elsewhere, but it never seems to actually get answered for sure.

How do I get the actual stage width or height as specified in the flash movie itself.

I want to keep the stage scale mode to SHOW\_ALL but need to be able to reference the original unchanging stage size for centering purposes. At the moment, depending on the window frame size (which should be central anyway) my items are horizontally around 60px off when I use this code:

```auto
bg.x = stage.width / 2 - bg.width / 2;

```

Is it possible, or do I have to set a constant at the beginning of my code?
