Tag Archives: switch

AS3 switch statement using a string

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 }

Posted in ActionScript 3.0 | Tagged , , , | Leave a comment