Posted By


weavermedia on 06/30/09

Tagged


Statistics


Viewed 623 times
Favorited by 3 user(s)

Basic Switch...Case syntax


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



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.