# gotoAndPlay(1 - 72) equivalent wanted

**URL:** <https://forum.kirupa.com/t/gotoandplay-1-72-equivalent-wanted/192074>\
**Category:** flash\
**Created:** [June 25, 2006, 9:37pm UTC](https://forum.kirupa.com/t/gotoandplay-1-72-equivalent-wanted/192074 "2006-06-25T21:37:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sigalert](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@sigalert](https://forum.kirupa.com/u/sigalert)\
**Post date:** [June 25, 2006, 9:37pm UTC](https://forum.kirupa.com/t/gotoandplay-1-72-equivalent-wanted/192074/1 "2006-06-25T21:37:42Z")

</div>

Me: New to Flash/Actionscript. Learning just enough to explore to put up an object I believe would work better in Flash.

I would like to implement a modified play button. I.e. press a button and have Flash play a certain number of frames in the timeline.

I don’t have a movie clip (at least I don’t think I do). I have two scenes: a preloader and a main… timeline. The main timeline is broken up in multiple “chapters”, delimited by “Labels”. By default the flash “movie” plays sequentially (and non-interactively) from beginning to end, one chapter after another.

I have implemented a play button using “play();”, a pause button using “stop();” and a rewind button using “gotoandplay(‘Scene 1’, ‘Label x’);”, all work great.

Now I would like to implement a set of navigation buttons using thumbnail images. Upon click (and release) of each thumbnail it would play a “chapter”, starting at frame number x and stopping at frame number y.

Tried variations including:  
on (release) {  
gotoAndPlay(“Scene 1”, “Start”);  
if (\_currentframe \> 72) {  
trace(\_currentframe);  
stop();  
}  
}

In the above, upon click of button, start playing at “Start” label thru frame number 72. Doesn’t work, the “\_currentframe” evaluates to undefined or 3. The preloader has only 2 frames.

It appears that a movie clip instance would solve the issue as it would allow me to target the specific object to control.

I know I am missing a simple but vital concept as I haven’t taken the time to learn Actionscript the “right way” 🙂

Help!
