Return to Snippet

Revision: 41116
at February 12, 2011 05:59 by adrianparr


Initial Code
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")
}

Initial URL
http://www.republicofcode.com/tutorials/flash/as3switch/

Initial Description


Initial Title
AS3 Switch Statement Example

Initial Tags


Initial Language
ActionScript 3