Switch/Case - driving me mad! Help!

Hi,

I’ve attached a .fla

Basically, I want to press a button (either button 1 or button 2). Each button press sets a variable to either 1 or 2 and then plays a movie clip. Halfway through the movie clip being played, something occurs (in this case, just a trace) depending on the value of the variable managed by the ‘switch’ command.

I’ve used switch/case script, but I cannot for the life of me work out why it’s not working!

Script on buttons:

Button 1

on (release) {
test = 1;
circle.gotoAndPlay(2);
}

Button 2

on (release) {
test = 2;
circle.gotoAndPlay(2);
}

Script on frame 10 of ‘circle’

switch (test) {
case 1 :
trace(“button one”);
break;
case 2 :
trace(“button two”);
break;
default :
trace(“neither”);
}

Whateverm button I press returns ‘neither’ in the trace?

Help!