# Can Stage.stageWidth be used in FlashCS4 AS2.0?

**URL:** <https://forum.kirupa.com/t/can-stage-stagewidth-be-used-in-flashcs4-as2-0/307966>\
**Category:** flash\
**Created:** [April 14, 2010, 8:35am UTC](https://forum.kirupa.com/t/can-stage-stagewidth-be-used-in-flashcs4-as2-0/307966 "2010-04-14T08:35:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lordrt](https://avatars.discourse-cdn.com/v4/letter/l/d07c76/32.png) [@lordrt](https://forum.kirupa.com/u/lordrt)\
**Post date:** [April 14, 2010, 8:35am UTC](https://forum.kirupa.com/t/can-stage-stagewidth-be-used-in-flashcs4-as2-0/307966/1 "2010-04-14T08:35:24Z")

</div>

Hello  
I wanted to use stageWidth/stageHeight property in actionscript 2.0 but was getting a compile error… by default I was using stage.width/stage.height but in IE it was returning 0 when reload page, is it possible actually to use the Stage.stageWidth in AS2??

(from google got this but example was for AS3: When using the _dynamic publishing method_ in Internet Explorer or Firefox on Mac stage.stageWidth and stage.stageHeight might initially return 0 (note that for Internet Explorer the stage size will be available on first load, however when reloading or revisiting a page it will initially be 0).)
