home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Diversos / ballistic_biscuit.swf / scripts / DefineSprite_58 / frame_1 / DoAction.as
Encoding:
Text File  |  2006-09-05  |  452 b   |  27 lines

  1. xStart = random("300") + "10";
  2. yStep = random("6") + "6";
  3. _Y = - "20";
  4. _X = xStart;
  5. tellTarget("hazzard")
  6. {
  7.    gotoAndStop(random("3") + "1");
  8. }
  9. if("100" < xStart and xStart < "210")
  10. {
  11.    tellTarget("/boat")
  12.    {
  13.       play();
  14.    }
  15. }
  16. if(eval("/score:count") == "0" and getProperty("/", _currentframe) == "20")
  17. {
  18.    tellTarget("/")
  19.    {
  20.       gotoAndStop(11);
  21.    }
  22. }
  23. else
  24. {
  25.    set("/score:count",eval("/score:count") - "1");
  26. }
  27.