actionscript switch statement

/ Published in: ActionScript
Save to your folder(s)

shows the basic structure of a switch statement. switches are useful when you want to respond to a series of possible values that a variable might have, without having to write a shitload of "if(blah blah){do blah}" code which, as we know soon ends up as curly bracket spaghetti!

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.