this.onEnterFrame=function(){ if (Key.isDown(Key.RIGHT)) { this.HERO.legs.gotoAndPlay(2); } else if (Key.isDown(Key.LEFT)) { this.HERO.legs.gotoAndStop(1); } }