# Frames...need to go to flash frame1, 2, and 3 and back

**URL:** https://forum.kirupa.com/t/frames-need-to-go-to-flash-frame1-2-and-3-and-back/247248
**Category:** Uncategorized
**Created:** [December 19, 2007, 11:56pm UTC](https://forum.kirupa.com/t/frames-need-to-go-to-flash-frame1-2-and-3-and-back/247248 "2007-12-19T23:56:56Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![daniel2008](https://avatars.discourse-cdn.com/v4/letter/d/5e9695/32.png) [@daniel2008](https://forum.kirupa.com/u/daniel2008)
#### Post date: [December 19, 2007, 11:56pm UTC](https://forum.kirupa.com/t/frames-need-to-go-to-flash-frame1-2-and-3-and-back/247248/1 "2007-12-19T23:56:56Z")

</div>

How do I make my button with this actionscript code go to more than one frame,

I want to be able to go to frame 1, then to frame 2, then to frame 3 and back to frame 1.

when i use code below it will default to frame 1 and if I click on button it will go to frame 2 and back to 1 but it will not go to frame 3. How do I do this?

here is the code:  
on (release) {  
gotoAndPlay(1);  
}

I was trying it like this but it does not work  
on (release) {  
gotoAndPlay(1,2,3);  
}

I was trying it like this but it does not work  
on (release) {  
gotoAndPlay(1-3);  
}

If anyone can help that would be great or knows what I am talking about or can help me,  
Dan
