# \[AS2\] Stage.width / height in Air 1.5

**URL:** <https://forum.kirupa.com/t/as2-stage-width-height-in-air-1-5/303637>\
**Category:** flash\
**Created:** [January 24, 2010, 12:49am UTC](https://forum.kirupa.com/t/as2-stage-width-height-in-air-1-5/303637 "2010-01-24T00:49:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flecko](https://avatars.discourse-cdn.com/v4/letter/f/ea666f/32.png) [@flecko](https://forum.kirupa.com/u/flecko)\
**Post date:** [January 24, 2010, 12:49am UTC](https://forum.kirupa.com/t/as2-stage-width-height-in-air-1-5/303637/1 "2010-01-24T00:49:52Z")

</div>

Hi, I’m trying to target Adobe Air in Flash CS4 for my AS2 project. I use Stage.width / Stage.height to determine the bounds and it works find in the normal flash player, but in Air the values are undefined. I couldn’t find any mention of this online, are there any known issues / workarounds? (ideally that don’t involve finding every use of Stage.width in my gigantic project and replacing it with a constant 🙂
