home *** CD-ROM | disk | FTP | other *** search
/ One Click 21 (Special) / OC021.iso / Juegos / skatecart.swf / scripts / DefineSprite_168 / frame_15 / DoAction.as
Encoding:
Text File  |  2005-11-19  |  534 b   |  24 lines

  1. if(eval("/:boy") == "5" and eval("/:jump") == "1" or eval("/:boy") == "6" and eval("/:jump") == "1")
  2. {
  3.    tellTarget("/B/bike")
  4.    {
  5.       gotoAndStop("slide");
  6.       play();
  7.    }
  8.    set("/:score",eval("/:score") + "100");
  9.    tellTarget("/score")
  10.    {
  11.       gotoAndPlay(2);
  12.    }
  13.    set("/:jump","2");
  14.    set("/:cop","1");
  15. }
  16. else if(eval("/:boy") == "5" and eval("/:jump") == "0" or eval("/:boy") == "6" and eval("/:jump") == "0")
  17. {
  18.    tellTarget("/B/bike")
  19.    {
  20.       gotoAndStop("crash");
  21.       play();
  22.    }
  23. }
  24.