# Is the Event.ENTER\_FRAME always executed before a frame is rendered

**URL:** <https://forum.kirupa.com/t/is-the-event-enter-frame-always-executed-before-a-frame-is-rendered/288387>\
**Category:** flash\
**Created:** [May 15, 2009, 3:49am UTC](https://forum.kirupa.com/t/is-the-event-enter-frame-always-executed-before-a-frame-is-rendered/288387 "2009-05-15T03:49:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhangxiaorui](https://avatars.discourse-cdn.com/v4/letter/z/e495f1/32.png) [@zhangxiaorui](https://forum.kirupa.com/u/zhangxiaorui)\
**Post date:** [May 15, 2009, 3:49am UTC](https://forum.kirupa.com/t/is-the-event-enter-frame-always-executed-before-a-frame-is-rendered/288387/1 "2009-05-15T03:49:54Z")

</div>

Thought I did some tests proof this, I just want to make sure:

No matter where the EnterFrame event is registered, the frame would not be rendered after the EnterFrame event handler done in each frame.

For example, I have two unrelated MovieClips:

```auto
oneMC.addEventListener(Event.ENTER_FRAME, tick);
function tick(event:Event):void {
    if (otherMC.currentFrame == 20) {
        otherMC.gotoAndPlay(5);
    }
}

```

The frame #20 of “otherMC” will never be rendered on the stage, right? Is there any documentation for this logic? I did not find some good reference from the ActionScript guide.

Thanks for convincing me in advance!
