I'm very new to flash but what seems to be the easiest of things I can't figure out.

I've created buttons before but I can't get this one to work - maybe the issue is how I created the variable. I just don't know.

In the first frame of the movie I declared a variable.

In the second frame, I created a button with the following script

on (press) {