# Play Random Keyframe

**URL:** https://forum.kirupa.com/t/play-random-keyframe/86483
**Category:** flash
**Created:** [April 13, 2005, 11:04am UTC](https://forum.kirupa.com/t/play-random-keyframe/86483 "2005-04-13T11:04:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![cr8igster](https://avatars.discourse-cdn.com/v4/letter/c/ce7236/32.png) [@cr8igster](https://forum.kirupa.com/u/cr8igster)
#### Post date: [April 13, 2005, 11:04am UTC](https://forum.kirupa.com/t/play-random-keyframe/86483/1 "2005-04-13T11:04:21Z")

</div>

I am wanting to add a script to a button so that when you click on the button it plays a random keyframe. For example i have 5 animations. at frames 21, 31, 41, 51, 61, and 71.

When the user clicks the button i am wanting it to randomly play one of the above keyframes. Is this possible or is it pretty complicated?

Replies Appreciated.

Cheers!
