Button refuses to work :(

Hi there, im trying to make a picture gallery (im a very basic flash user)

I have made my images site nicely and stuff with stop frames on each picture (in each different frame)

the idea is that the user looks at a picture and it stops on the current frame until the user hites next to continue onto the next image

my actions to try and work this are

on (pressgotoAndStop(nextFrame();
);
) {
}

^ not sure if thats right

I get these errors:

Scene=Scene 1, Layer=box, Frame=12: Line 1: Invalid mouse event specified.
on (pressgotoAndStop(nextFrame();

Scene=Scene 1, Layer=box, Frame=12: Line 2: Unexpected ‘)’ encountered
);

*Scene=Scene 1, Layer=box, Frame=12: Line 3: Unexpected ‘)’ encountered
) {
*

**Im totally baffled, so any help would be super :S

**

The code is totally wrong, mate.

This should be right:

 
on (release) {
	_root.nextFrame();
	/*or you can replace _root with an
	instance name of a movieclip*/
}

Hope that’s right :stuck_out_tongue:

thanks mate!

if you wanna see the start of what i have made its here

http://markgw.fu8.com/General_pics/photos.htm

always a pleasure