AS2.0 wrong with this code?

on(release){
var a:Number=txt1;
var b:Number=txt2;
switch(a){case 1:
b=a;
break;
case 2:
b=a;
break;
default:
b=a+10;
}
}

AS2.0 wrong with this code?