# Loop 3 times then stop

**URL:** <https://forum.kirupa.com/t/loop-3-times-then-stop/284385>\
**Category:** Uncategorized\
**Created:** [March 18, 2009, 6:34pm UTC](https://forum.kirupa.com/t/loop-3-times-then-stop/284385 "2009-03-18T18:34:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kcrimzon](https://avatars.discourse-cdn.com/v4/letter/k/67e7ee/32.png) [@kcrimzon](https://forum.kirupa.com/u/kcrimzon)\
**Post date:** [March 18, 2009, 6:34pm UTC](https://forum.kirupa.com/t/loop-3-times-then-stop/284385/1 "2009-03-18T18:34:47Z")

</div>

I am going absolutely crazy with the simplicity of this problem!

I have an mc that i want to play 3 times then stop … and it is not working.

I tried a basic timer

var timer:Timer = new Timer(8000, 3);  
timer.addEventListener(TimerEvent.TIMER, playMovieClip);  
timer.start();

function playMovieClip(e:TimerEvent):void  
{  
mc.Play;  
}

and for some reason not only does it continuously loop but it also adds an additional play every time it loops…

can some one please help me loop an mc three times then stop?  
I am seriously going crazy.
