# Loop 3 times and then play

**URL:** <https://forum.kirupa.com/t/loop-3-times-and-then-play/262296>\
**Category:** Uncategorized\
**Created:** [June 4, 2008, 7:14pm UTC](https://forum.kirupa.com/t/loop-3-times-and-then-play/262296 "2008-06-04T19:14:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nnnswordfish](https://avatars.discourse-cdn.com/v4/letter/n/65b543/32.png) [@nnnswordfish](https://forum.kirupa.com/u/nnnswordfish)\
**Post date:** [June 4, 2008, 7:14pm UTC](https://forum.kirupa.com/t/loop-3-times-and-then-play/262296/1 "2008-06-04T19:14:18Z")

</div>

hy 🙂 i have movieclip that starts palyng on 5 frame and ends to 12 frame,i want to loop it from 5 to 12 3 times and than to play frame 13 how i can do this?is it possible? thanks 🙂

---

<div class="post-metadata">

**Author:** ![matthewjumps](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@matthewjumps](https://forum.kirupa.com/u/matthewjumps)\
**Post date:** [June 4, 2008, 7:34pm UTC](https://forum.kirupa.com/t/loop-3-times-and-then-play/262296/2 "2008-06-04T19:34:29Z")

</div>

before frame 5 put

```auto

var numberOfTimes:Number = 0;

```

on frame 12 put

```auto

numberOfTimes++;
if(numberOfTimes < 3){
gotoAndPlay(5)
}

```

didnt test it but should work

---

<div class="post-metadata">

**Author:** ![nnnswordfish](https://avatars.discourse-cdn.com/v4/letter/n/65b543/32.png) [@nnnswordfish](https://forum.kirupa.com/u/nnnswordfish)\
**Post date:** [June 4, 2008, 7:42pm UTC](https://forum.kirupa.com/t/loop-3-times-and-then-play/262296/3 "2008-06-04T19:42:25Z")

</div>

thanks thanks and thanks works fine 🙂

---

<div class="post-metadata">

**Author:** ![matthewjumps](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@matthewjumps](https://forum.kirupa.com/u/matthewjumps)\
**Post date:** [June 4, 2008, 7:59pm UTC](https://forum.kirupa.com/t/loop-3-times-and-then-play/262296/4 "2008-06-04T19:59:12Z")

</div>

no worries mate glad to help 😃
