home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / Kung_Fu.swf / scripts / DefineSprite_1534 / frame_69 / DoAction.as
Encoding:
Text File  |  2007-09-27  |  670 b   |  45 lines

  1. _parent.lock = "on";
  2. r = random(7);
  3. if(r == 0)
  4. {
  5.    s = new Sound();
  6.    s.attachSound("wrong0");
  7.    s.start(0,0);
  8. }
  9. else if(r == 1)
  10. {
  11.    s = new Sound();
  12.    s.attachSound("wrong1");
  13.    s.start(0,0);
  14. }
  15. else if(r == 2)
  16. {
  17.    s = new Sound();
  18.    s.attachSound("wrong2");
  19.    s.start(0,0);
  20. }
  21. else if(r == 3)
  22. {
  23.    s = new Sound();
  24.    s.attachSound("wrong3");
  25.    s.start(0,0);
  26. }
  27. else if(r == 4)
  28. {
  29.    s = new Sound();
  30.    s.attachSound("wrong4");
  31.    s.start(0,0);
  32. }
  33. else if(r == 5)
  34. {
  35.    s = new Sound();
  36.    s.attachSound("wrong5");
  37.    s.start(0,0);
  38. }
  39. else if(r == 6)
  40. {
  41.    s = new Sound();
  42.    s.attachSound("wrong6");
  43.    s.start(0,0);
  44. }
  45.