# onEnterFrame only runs once

**URL:** https://forum.kirupa.com/t/onenterframe-only-runs-once/185745
**Category:** flash
**Created:** [April 16, 2006, 2:03am UTC](https://forum.kirupa.com/t/onenterframe-only-runs-once/185745 "2006-04-16T02:03:25Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ravic](https://avatars.discourse-cdn.com/v4/letter/r/8e7dd6/32.png) [@ravic](https://forum.kirupa.com/u/ravic)
#### Post date: [April 16, 2006, 2:03am UTC](https://forum.kirupa.com/t/onenterframe-only-runs-once/185745/1 "2006-04-16T02:03:25Z")

</div>

I’m having a problem with an onEnterFrame event which only runs once and then stops. I’ve commented out all of the other actionscript in my movie, and it will still continue with that problem. I even copied and pasted this from another movie to a new one, and the problem still persists. So it must be a problem with the movie clip instances themself, as I’ve tried the onEnterFrame on two different timelines.

Thanks for any help I can get, I’m in a bit of a pickle on this one.

---

<div class="post-metadata">

### Author: ![TheCanadian](https://avatars.discourse-cdn.com/v4/letter/t/67e7ee/32.png) [@TheCanadian](https://forum.kirupa.com/u/TheCanadian)
#### Post date: [April 16, 2006, 2:56am UTC](https://forum.kirupa.com/t/onenterframe-only-runs-once/185745/2 "2006-04-16T02:56:36Z")

</div>

```auto
controller.onEnterFrame = test;
function test() {
 trace("problem");
}

```

---

<div class="post-metadata">

### Author: ![JoshuaJonah](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joshuajonah/32/1775_2.png) [@JoshuaJonah](https://forum.kirupa.com/u/JoshuaJonah)
#### Post date: [April 16, 2006, 3:15am UTC](https://forum.kirupa.com/t/onenterframe-only-runs-once/185745/3 "2006-04-16T03:15:58Z")

</div>

lol

---

<div class="post-metadata">

### Author: ![ravic](https://avatars.discourse-cdn.com/v4/letter/r/8e7dd6/32.png) [@ravic](https://forum.kirupa.com/u/ravic)
#### Post date: [April 17, 2006, 1:09am UTC](https://forum.kirupa.com/t/onenterframe-only-runs-once/185745/4 "2006-04-17T01:09:25Z")

</div>

Is it a problem with that code?
