Actionscript switch statement

switch (a) {
case 1 :
trace("one");
break;
case 2 :
trace("two");
break;
case 3 :
trace("three");
break;
default :
trace("other");
break;
}

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.