Code:
_root.thumbs.thumb1.onRelease = function() {
	counter = 1
	gotoAndPlay(2)
}
I need to use this piece of code numberous times ... like a hundred ... I could copy and paste it 100 times and just change the numbers ... but surely not ...

so the thumb1 increments to thumb2 and so on ... and the counter value corresponds to the number thumb ... so the next code would be:

Code:
_root.thumbs.thumb2.onRelease = function() {
	counter = 2
	gotoAndPlay(2)
}
I'm sure there is a simple function? or something I can use .... any help would be great .. thanks