home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Aventura / asitchintime2.swf / scripts / DefineSprite_226 / frame_2 / DoAction.as
Encoding:
Text File  |  2005-11-09  |  644 b   |  16 lines

  1. a = 0;
  2. while(a < tabP.length)
  3. {
  4.    if(perso.persoFeet.hitTest(_parent[tabP[a] + "_hitZone"]) and (_parent[tabP[a] + "_hitZone"]._currentframe == 1 or _parent[tabP[a] + "_hitZone"]._currentframe > frameDown) and !c.persoIsJumping)
  5.    {
  6.       _parent._parent[tabP[a] + "_anim"].gotoAndPlay("play");
  7.       _parent[tabP[a] + "_hitZone"].gotoAndPlay("play");
  8.    }
  9.    else if(_parent[tabP[a] + "_hitZone"]._currentframe == frameDown and !perso.persoFeet.hitTest(_parent[tabP[a] + "_hitZone"]))
  10.    {
  11.       _parent._parent[tabP[a] + "_anim"].gotoAndPlay("play2");
  12.       _parent[tabP[a] + "_hitZone"].gotoAndPlay("play2");
  13.    }
  14.    a++;
  15. }
  16.