var v = 1; switch(v){ case 1: traceVar = 'a'; //break; case 2: traceVar = 'b'; //break; case 3: traceVar = 'c'; //break; } trace(traceVar)