home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Corrida / FlashRacer.swf / scripts / frame_9 / DoAction.as
Encoding:
Text File  |  2001-07-07  |  650 b   |  44 lines

  1. tellTarget("_flash0/zielsound")
  2. {
  3.    play();
  4. }
  5. tellTarget("/computer1")
  6. {
  7.    stop();
  8. }
  9. tellTarget("/computer2")
  10. {
  11.    stop();
  12. }
  13. tellTarget("/computer3")
  14. {
  15.    stop();
  16. }
  17. p_xpos = getProperty("/player/auto", _X);
  18. c1_xpos = getProperty("/computer1/auto", _X);
  19. c2_xpos = getProperty("/computer2/auto", _X);
  20. c3_xpos = getProperty("/computer3/auto", _X);
  21. place = "4";
  22. if(p_xpos < c1_xpos)
  23. {
  24.    place -= "1";
  25. }
  26. if(p_xpos < c2_xpos)
  27. {
  28.    place -= "1";
  29. }
  30. if(p_xpos < c3_xpos)
  31. {
  32.    place -= "1";
  33. }
  34. place = place add ".";
  35. tellTarget("/finish")
  36. {
  37.    gotoAndStop(2);
  38. }
  39. tellTarget("/round3")
  40. {
  41.    gotoAndStop(1);
  42. }
  43. stop();
  44.