# STOP an onClipEvent(enterFrame)

**URL:** <https://forum.kirupa.com/t/stop-an-onclipevent-enterframe/47872>\
**Category:** flash\
**Created:** [April 7, 2004, 9:03pm UTC](https://forum.kirupa.com/t/stop-an-onclipevent-enterframe/47872 "2004-04-07T21:03:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thesignx](https://avatars.discourse-cdn.com/v4/letter/t/71e660/32.png) [@thesignx](https://forum.kirupa.com/u/thesignx)\
**Post date:** [April 7, 2004, 9:03pm UTC](https://forum.kirupa.com/t/stop-an-onclipevent-enterframe/47872/1 "2004-04-07T21:03:53Z")

</div>

Hi, there all…

Someone toll me that if I use “lots” of onClipEvent(enterFrame) events  
my movie it may get just a lot slower… so…

is there a script or way to stop the enterFrame when its events have been processed?

I was thinking to use:

onClipEvent(enterFrame){  
// do Stuff calculation from 1 to 100  
calculation = calculation +=1;  
if(calculation \<= 100){  
// do stuff until calculation =\> 100;  
}else{  
break;  
}

is it ok, or is there a smarter way?

THANKS
