home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Diversos / skelet_dance.swf / scripts / frame_50 / DoAction.as
Encoding:
Text File  |  2006-09-05  |  663 b   |  49 lines

  1. if(fals >= "20")
  2. {
  3.    gotoAndStop(80);
  4. }
  5. setProperty("/l3", _Y, "455");
  6. setProperty("/d3", _Y, "455");
  7. setProperty("/u3", _Y, "455");
  8. setProperty("/r3", _Y, "455");
  9. a = random("4");
  10. b = a + "1";
  11. c = random("4");
  12. d = c + "1";
  13. if(a == "1" and b == "1")
  14. {
  15.    if(c == "1" and d == "1")
  16.    {
  17.       b = "0";
  18.       c = "0";
  19.    }
  20. }
  21. if(a == "1")
  22. {
  23.    tellTarget("/act3")
  24.    {
  25.       gotoAndPlay(2);
  26.    }
  27. }
  28. if(b == "1")
  29. {
  30.    tellTarget("/act13")
  31.    {
  32.       gotoAndPlay(2);
  33.    }
  34. }
  35. if(c == "1")
  36. {
  37.    tellTarget("/act23")
  38.    {
  39.       gotoAndPlay(2);
  40.    }
  41. }
  42. if(d == "1")
  43. {
  44.    tellTarget("/act33")
  45.    {
  46.       gotoAndPlay(2);
  47.    }
  48. }
  49.