home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Corrida / chicken.swf / scripts / frame_27 / DoAction.as
Encoding:
Text File  |  2006-05-23  |  487 b   |  27 lines

  1. stopAllSounds();
  2. call("tome");
  3. ppp = ("447" - kkk) * "5";
  4. setProperty("/ccar", _X, "500" - ppp);
  5. qqq = ("447" - lll) * "5";
  6. setProperty("/mcar", _X, "500" - qqq);
  7. aaa = int(ppp * "3" + (random("5") - "3")) + random("100") / "100";
  8. bbb = qqq * "3" + (random("100") - "50") / "100";
  9. if(bbb < aaa)
  10. {
  11.    tellTarget("/kati")
  12.    {
  13.       gotoAndStop(1);
  14.    }
  15. }
  16. else
  17. {
  18.    tellTarget("/kati")
  19.    {
  20.       gotoAndStop(2);
  21.    }
  22. }
  23. tellTarget("/miti")
  24. {
  25.    gotoAndStop(5);
  26. }
  27.