# Can't construct with the constructor function!

**URL:** <https://forum.kirupa.com/t/cant-construct-with-the-constructor-function/292367>\
**Category:** flash\
**Created:** [July 13, 2009, 4:09pm UTC](https://forum.kirupa.com/t/cant-construct-with-the-constructor-function/292367 "2009-07-13T16:09:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SticksStones](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@SticksStones](https://forum.kirupa.com/u/SticksStones)\
**Post date:** [July 13, 2009, 4:09pm UTC](https://forum.kirupa.com/t/cant-construct-with-the-constructor-function/292367/1 "2009-07-13T16:09:58Z")

</div>

I’m having trouble accessing stage.stageHeight and stageWidth from within nested layers using their constructor functions - although i can from the constructor function of the DocClass. I think this is because the display list hasn’t yet been created.

In the past I’ve worked around the problem, but what is the best solution?

Is it possible to fire an event once the display list has been created?
