# AS3 Playing a movieclip on a keyframe then repeating on the next

**URL:** <https://forum.kirupa.com/t/as3-playing-a-movieclip-on-a-keyframe-then-repeating-on-the-next/332210>\
**Category:** flash\
**Created:** [March 5, 2014, 2:34pm UTC](https://forum.kirupa.com/t/as3-playing-a-movieclip-on-a-keyframe-then-repeating-on-the-next/332210 "2014-03-05T14:34:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DeadManJoe](https://avatars.discourse-cdn.com/v4/letter/d/94ad74/32.png) [@DeadManJoe](https://forum.kirupa.com/u/DeadManJoe)\
**Post date:** [March 5, 2014, 2:34pm UTC](https://forum.kirupa.com/t/as3-playing-a-movieclip-on-a-keyframe-then-repeating-on-the-next/332210/1 "2014-03-05T14:34:43Z")

</div>

Hey there, so I created three seperate movieclips on my main timeline and each one is on a seperate keyframe. I want to put in code so that it will play the first movieclip on keyframe1, then move to keyframe 2 and play that movie clip, ect. How do you code this and do you code on the main timeline or in each movieclip? Thanks!
