# Stage not getting registered inside child mc

**URL:** <https://forum.kirupa.com/t/stage-not-getting-registered-inside-child-mc/218493>\
**Category:** Uncategorized\
**Created:** [March 8, 2007, 6:05am UTC](https://forum.kirupa.com/t/stage-not-getting-registered-inside-child-mc/218493 "2007-03-08T06:05:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![glidealong](https://avatars.discourse-cdn.com/v4/letter/g/da6949/32.png) [@glidealong](https://forum.kirupa.com/u/glidealong)\
**Post date:** [March 8, 2007, 6:05am UTC](https://forum.kirupa.com/t/stage-not-getting-registered-inside-child-mc/218493/1 "2007-03-08T06:05:18Z")

</div>

Hello everyone,

I have got a heirarchy of objects which goes like this -\> stage.control\_mc.gaincontrol\_mc.knob\_mc

i am trying to register an event listener for stage from within knob\_mc using  
stage.addEventListener(“mouseUp”,this.mup2);  
and i have defined the function mup2 within the knob\_mc class - but when i run the movie and dynamically add the knob\_mc to the stage i get this error

TypeError: Error #1009: Cannot access a property or method of a null object reference.

i dont know why stage is a null object. when i trace stage from within knob\_mc i get null…

thanks in advance…
