home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / croc.swf / scripts / DefineSprite_106 / frame_1 / DoAction_3.as < prev    next >
Encoding:
Text File  |  2003-11-08  |  600 b   |  32 lines

  1. function checkHeroOnLog()
  2. {
  3.    if(_parent.log1.hitTest(_parent.hero.hitArea))
  4.    {
  5.       onLog = 1;
  6.    }
  7.    if(_parent.log2.hitTest(_parent.hero.hitArea))
  8.    {
  9.       onLog = 1;
  10.    }
  11.    if(_parent.log3.hitTest(_parent.hero.hitArea))
  12.    {
  13.       onLog = 1;
  14.    }
  15.    if(_parent.log4.hitTest(_parent.hero.hitArea))
  16.    {
  17.       onLog = 1;
  18.    }
  19.    if(_parent.log5.hitTest(_parent.hero.hitArea))
  20.    {
  21.       onLog = 1;
  22.    }
  23.    if(_parent.log6.hitTest(_parent.hero.hitArea))
  24.    {
  25.       onLog = 1;
  26.    }
  27.    if(_parent.log7.hitTest(_parent.hero.hitArea))
  28.    {
  29.       onLog = 1;
  30.    }
  31. }
  32.