# Stopping a loop

**URL:** https://forum.kirupa.com/t/stopping-a-loop/228537
**Category:** flash
**Created:** [June 8, 2007, 6:09pm UTC](https://forum.kirupa.com/t/stopping-a-loop/228537 "2007-06-08T18:09:47Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pr1](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@pr1](https://forum.kirupa.com/u/pr1)
#### Post date: [June 8, 2007, 6:09pm UTC](https://forum.kirupa.com/t/stopping-a-loop/228537/1 "2007-06-08T18:09:47Z")

</div>

I am running a flurry effect and this portion of the script is the one I am having issues with. I would like the script to stop after it cycles through the first time. This is the original portion of it

onClipEvent(load)  
{  
i = 1;  
max = 200;  
}  
onClipEvent(enterFrame)  
{  
if (i\<=max) {  
\_parent.point.duplicateMovieClip(“point”+i, i);  
i++;  
}  
else \_parent.play();  
}
