# Event handler

**URL:** <https://forum.kirupa.com/t/event-handler/111141>\
**Category:** Uncategorized\
**Created:** [May 24, 2004, 2:21am UTC](https://forum.kirupa.com/t/event-handler/111141 "2004-05-24T02:21:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cardjorg](https://avatars.discourse-cdn.com/v4/letter/c/a183cd/32.png) [@cardjorg](https://forum.kirupa.com/u/cardjorg)\
**Post date:** [May 24, 2004, 2:21am UTC](https://forum.kirupa.com/t/event-handler/111141/1 "2004-05-24T02:21:08Z")

</div>

Hello,  
I have a simple question,

I’m making a movie quiz and at the end i have an animation inside a movie clip and when the person gets to the last frame I want that animation to play but only one time instead of playing it 12 times per second so I would like to know if there is an event handler that does this, for example:

```auto

onClipEvent(enterFrame){ //<--- this is the event handler want to replace
if(_root.Score ==100){
_root.ball.gotoAndPlay("AdvancedM");
}
}

```

thanks 🙂
