# Is there a way to gotoAndPlay on buttons?

**URL:** <https://forum.kirupa.com/t/is-there-a-way-to-gotoandplay-on-buttons/202609>\
**Category:** flash\
**Created:** [October 3, 2006, 1:00am UTC](https://forum.kirupa.com/t/is-there-a-way-to-gotoandplay-on-buttons/202609 "2006-10-03T01:00:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lacus](https://avatars.discourse-cdn.com/v4/letter/l/a9a28c/32.png) [@Lacus](https://forum.kirupa.com/u/Lacus)\
**Post date:** [October 3, 2006, 1:00am UTC](https://forum.kirupa.com/t/is-there-a-way-to-gotoandplay-on-buttons/202609/1 "2006-10-03T01:00:17Z")

</div>

Hi,  
I am now dealing with buttons and have to create them with this kind of flow:

I need to click the coloured buttons and store them into array.  
When I click play button, the color buttons have to play in sequence according to the array.

In the buttons i did insert keyframe to make the code such as,

\_level0.redBtn.gotoAndPlay(“Down”);

But it doesn’t work.

Anyone have any way or suggested solution for me?  
Thanks alot for the help in advance…
