# Using stageWidth & stageHeight

**URL:** https://forum.kirupa.com/t/using-stagewidth-stageheight/239359
**Category:** flash
**Created:** [September 20, 2007, 9:19pm UTC](https://forum.kirupa.com/t/using-stagewidth-stageheight/239359 "2007-09-20T21:19:59Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ethernal](https://avatars.discourse-cdn.com/v4/letter/e/e47c2d/32.png) [@ethernal](https://forum.kirupa.com/u/ethernal)
#### Post date: [September 20, 2007, 9:19pm UTC](https://forum.kirupa.com/t/using-stagewidth-stageheight/239359/1 "2007-09-20T21:19:59Z")

</div>

When you are creating a class which needs to know the stage width and height, how do you do this?

Till now I have been passing the stage as a parameter in order to be able to use its properties, but I feel this is not the correct way.

If I just try to use stage.stageWidth in a class, I get an error. Any suggestions?
