# Gotoandplay

**URL:** <https://forum.kirupa.com/t/gotoandplay/161000>\
**Category:** Uncategorized\
**Created:** [August 31, 2005, 7:14am UTC](https://forum.kirupa.com/t/gotoandplay/161000 "2005-08-31T07:14:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeff\_Wood\_Net](https://avatars.discourse-cdn.com/v4/letter/j/a183cd/32.png) [@Jeff\_Wood\_Net](https://forum.kirupa.com/u/Jeff_Wood_Net)\
**Post date:** [August 31, 2005, 7:14am UTC](https://forum.kirupa.com/t/gotoandplay/161000/1 "2005-08-31T07:14:23Z")

</div>

k what im doing is showing different photo sets on the same timeline for my site. so i thought i would have each photoset on a frame and each frame has the stop function on it to keep it from playing them all. so i have a button saying “set 1” and when you click that its supposed to play frame 5.  
code on the button:  
on (release) {  
gotoAndPlay(7);  
}

(set one is on frame 7) but this doesnt work i dont get it. whats wrong? is there a better way to do this?
