home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Corrida / HighwaySpeed.swf / scripts / DefineSprite_169 / frame_1 / DoAction.as
Encoding:
Text File  |  2001-07-14  |  537 b   |  22 lines

  1. X = getProperty("../car2", _X);
  2. if(X >= "0" and "120" >= X and eval("../:car1") == "0")
  3. {
  4.    set("../:car1","1");
  5. }
  6. if(X >= "121" and "240" >= X and eval("../:car2") == "0")
  7. {
  8.    set("../:car2","1");
  9. }
  10. if(X >= "241" and "360" >= X and eval("../:car3") == "0" and eval("../:car2") != "2")
  11. {
  12.    set("../:car3","1");
  13. }
  14. if(X >= "361" and "480" >= X and eval("../:car4") == "0")
  15. {
  16.    set("../:car4","1");
  17. }
  18. if(X >= "481" and "600" >= X and eval("../:car5") == "0" and eval("../:car4") != "2")
  19. {
  20.    set("../:car5","1");
  21. }
  22.