Simple switch statement in ActionScript 3
var action:String = "addOption";
switch(action){
case "addOption":
//Code here
break;
case "removeOption":
//Code here
break;
default:
//Default code here
}
Simple switch statement in ActionScript 3
var action:String = "addOption";
switch(action){
case "addOption":
//Code here
break;
case "removeOption":
//Code here
break;
default:
//Default code here
}