# Error in Object Not Even on Stage

**URL:** <https://forum.kirupa.com/t/error-in-object-not-even-on-stage/323922>\
**Category:** flash\
**Created:** [July 24, 2011, 3:50pm UTC](https://forum.kirupa.com/t/error-in-object-not-even-on-stage/323922 "2011-07-24T15:50:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanDaMan](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@DanDaMan](https://forum.kirupa.com/u/DanDaMan)\
**Post date:** [July 24, 2011, 3:50pm UTC](https://forum.kirupa.com/t/error-in-object-not-even-on-stage/323922/1 "2011-07-24T15:50:53Z")

</div>

Hello, on one frame of the Main Timeline I have a bunch of display objects that carry out functions and whatnot. When the frame changes to the next one, they are all removed and no longer exist on the new frame. However, I still get this error:

```auto
TypeError: Error #1009: Cannot access a property or method of a null object reference.
	at myObject/eFrame()

```

The thing is that myObject isn’t even on the stage during this frame. But for some reason it seems like the ENTER\_FRAME (eFrame) function is being carried out every frame. But if I were to throw a trace() in there, the trace wouldn’t appear in the output (obviously because the object isn’t on stage). Any idea why this is happening and what I can do to fix it? Thank you in advance.
