# How to randomize a button play?

**URL:** https://forum.kirupa.com/t/how-to-randomize-a-button-play/327055
**Category:** Uncategorized
**Created:** [February 2, 2012, 11:07pm UTC](https://forum.kirupa.com/t/how-to-randomize-a-button-play/327055 "2012-02-02T23:07:07Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![wittleM3](https://avatars.discourse-cdn.com/v4/letter/w/f19dbf/32.png) [@wittleM3](https://forum.kirupa.com/u/wittleM3)
#### Post date: [February 2, 2012, 11:07pm UTC](https://forum.kirupa.com/t/how-to-randomize-a-button-play/327055/1 "2012-02-02T23:07:07Z")

</div>

Hello all, I am new to flash and seem to be stuck with this problem. Any guidance would be extremely appreciated.

1 button. 3 animations (red, green, blue) on different layers at different frames (80, 100, 115) in the timeline.

How do I get the button to goto and play one of the random animations when pressed?

Thanks,

Again, any guidance would be extremely appreciated.
