/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
switch (myVariable) { case 1: // Do something here break; case 2: // Do something here break; case 3: // Do something here break; default: trace ("None of the above cases were met") }
URL: http://www.republicofcode.com/tutorials/flash/as3switch/