Press a button to advance to next frame

REALLY REALLY REALLY new to Flash, so I’m hoping I can get some help. :slight_smile:

I’m trying to get a button to just advace to the next frame when I click on it. So far the only thing I’ve figured out how to do is getting it to ‘randomly’ choose a frame, but I don’t know how to type out anything to just get it to advace one by one and then start over.

heres my code for the button:

on (press) {

this.Player_1.gotoAndStop(“2”);
}

-Player_1- is the name of the ‘instance’ and the time line with the frames in it.

heres the code for the ‘timeline’:

for actionscripton frame #1 i have:

stop();

then in frame#2 i have:

gotoAndStop(random(10)+3);

any help would be great, thanks :slight_smile:

bsb