Posted By

edsonpavoni on 11/17/09


Tagged

basic Switch


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

adrianparr


Basic Switch


 / Published in: ActionScript 3
 

  1. switch (example_string)
  2. {
  3. case "a":
  4. trace ("a was selected");
  5. break;
  6.  
  7. case "b":
  8. trace ("b was selected");
  9. break;
  10.  
  11. default:
  12. trace ("Neither a or b was selected")
  13. }

Report this snippet  

You need to login to post a comment.