onEnterFrame = function () { if (Key.isDown(Key.LEFT)) { Tank.gotoAndStop("Left"); if (!Tank.hitTest(Wall)) { Tank._x -= 5; } } };