# Very simple question: Event.ENTER\_FRAME from within function

**URL:** <https://forum.kirupa.com/t/very-simple-question-event-enter-frame-from-within-function/252192>\
**Category:** flash\
**Created:** [February 17, 2008, 7:40pm UTC](https://forum.kirupa.com/t/very-simple-question-event-enter-frame-from-within-function/252192 "2008-02-17T19:40:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aneurin\_Mark\_II](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/aneurin_mark_ii/32/1564_2.png) [@Aneurin\_Mark\_II](https://forum.kirupa.com/u/Aneurin_Mark_II)\
**Post date:** [February 17, 2008, 7:40pm UTC](https://forum.kirupa.com/t/very-simple-question-event-enter-frame-from-within-function/252192/1 "2008-02-17T19:40:52Z")

</div>

ActionScript Code:  
[FONT=Courier New][LEFT][COLOR=#000000] **function** [/COLOR] beginGame COLOR=#000000[/COLOR]:[COLOR=#0000FF]void[/COLOR] [COLOR=#000000]{[/COLOR]  
[COLOR=#808080]_// Add gameplay listeners_[/COLOR]  
addEventListener [COLOR=#000000]([/COLOR]Event.[COLOR=#000080]ENTER\_FRAME[/COLOR], otherFunction[COLOR=#000000])[/COLOR];  
[COLOR=#000000]}[/COLOR]  
[/LEFT]  
[/FONT]

Don’t work.

Want Event.ENTER\_FRAME run from root.

How make work?

Thank.
