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

  1. rnd = random("4");
  2. if(rnd == "1")
  3. {
  4.    set("../:bb",getProperty("../cmpc", _currentframe));
  5.    tellTarget("../cmpc")
  6.    {
  7.       gotoAndStop(eval("../:bb") + "1");
  8.    }
  9. }
  10. if(rnd == "0")
  11. {
  12.    set("../:bb",getProperty("../cmpc", _currentframe));
  13.    tellTarget("../cmpc")
  14.    {
  15.       gotoAndStop(eval("../:bb") - "1");
  16.    }
  17. }
  18.