# The Matter of Stage

**URL:** <https://forum.kirupa.com/t/the-matter-of-stage/312466>\
**Category:** flash\
**Created:** [August 4, 2010, 4:43am UTC](https://forum.kirupa.com/t/the-matter-of-stage/312466 "2010-08-04T04:43:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rimacy](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@rimacy](https://forum.kirupa.com/u/rimacy)\
**Post date:** [August 4, 2010, 4:43am UTC](https://forum.kirupa.com/t/the-matter-of-stage/312466/1 "2010-08-04T04:43:06Z")

</div>

What I’d like to do is add an event listener to a class instantiated by my document class that listens for different key presses. So far I can’t use  
stage.addeventListener or I get the null object error so my question is:

a: how do i add an event listener to the stage from another class  
and  
b: is it even necessary to add it to the stage , can I listen from that class?
