home *** CD-ROM | disk | FTP | other *** search
- a = 0;
- while(a < tabP.length)
- {
- 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)
- {
- _parent._parent[tabP[a] + "_anim"].gotoAndPlay("play");
- _parent[tabP[a] + "_hitZone"].gotoAndPlay("play");
- }
- else if(_parent[tabP[a] + "_hitZone"]._currentframe == frameDown and !perso.persoFeet.hitTest(_parent[tabP[a] + "_hitZone"]))
- {
- _parent._parent[tabP[a] + "_anim"].gotoAndPlay("play2");
- _parent[tabP[a] + "_hitZone"].gotoAndPlay("play2");
- }
- a++;
- }
-