# Enter Frame Event question

**URL:** <https://forum.kirupa.com/t/enter-frame-event-question/239662>\
**Category:** flash\
**Created:** [September 24, 2007, 4:47pm UTC](https://forum.kirupa.com/t/enter-frame-event-question/239662 "2007-09-24T16:47:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![absolutezero342](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@absolutezero342](https://forum.kirupa.com/u/absolutezero342)\
**Post date:** [September 24, 2007, 4:47pm UTC](https://forum.kirupa.com/t/enter-frame-event-question/239662/1 "2007-09-24T16:47:03Z")

</div>

what happens if I do this:

```auto
 
addEventListener(Event.ENTER_FRAME, doSomething);

```

does this code attach my event listener to the “stage”, or the “root”?  
or would this code be erroneous?

I want to add the enter frame event to the main timeline…how do I accomplish that?
