# Play random Keyframe to Keyframe in MC

**URL:** <https://forum.kirupa.com/t/play-random-keyframe-to-keyframe-in-mc/183700>\
**Category:** flash\
**Created:** [March 29, 2006, 10:27am UTC](https://forum.kirupa.com/t/play-random-keyframe-to-keyframe-in-mc/183700 "2006-03-29T10:27:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DesignerDude05](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@DesignerDude05](https://forum.kirupa.com/u/DesignerDude05)\
**Post date:** [March 29, 2006, 10:27am UTC](https://forum.kirupa.com/t/play-random-keyframe-to-keyframe-in-mc/183700/1 "2006-03-29T10:27:58Z")

</div>

Hey all i am creating a game now this is complex but i have been told by my fellow actioncript co worker that its doable, What it is i have a game “Reaction Tester” and It is inside a car going along the road so its psudeo 3d and i have the “walls” and road sorted now i want a movie clip in the road to throw out random objects From a Movie clip, now i will call them from frame names, say…

frame 1-10 is a tween with a box coming down and then frame 11-20 is a cat and frame 21-30 is a hole in the road Etc i want it to call a random frame to frame, to play can anyone help, thanx in advance

---

<div class="post-metadata">

**Author:** ![nathan99](https://avatars.discourse-cdn.com/v4/letter/n/96bed5/32.png) [@nathan99](https://forum.kirupa.com/u/nathan99)\
**Post date:** [March 29, 2006, 10:38am UTC](https://forum.kirupa.com/t/play-random-keyframe-to-keyframe-in-mc/183700/2 "2006-03-29T10:38:37Z")

</div>

On Every 10 frames

```auto
sits=5;//How many sets of 10
gotoAndPlay(random(sits*10));

```
