Posted By

weavermedia on 06/30/09


Tagged

as3


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

weavermedia
sweetbabyyoung
markaltman


Basic Switch...Case syntax


 / Published in: ActionScript 3
 

  1. // basic switch/case syntax
  2.  
  3. switch (langCode)
  4. {
  5. case "eng":
  6. //
  7. // do something here if langCode is "english"
  8. //
  9. break;
  10. case "spa":
  11. //
  12. // do something else here if langCode is "spanish"
  13. //
  14. break;
  15. default:
  16. //
  17. // do this default is langCode matches none
  18. //
  19. }

Report this snippet  

You need to login to post a comment.