I need help with gamming animation please!

Hello! I’m a begginer with Flash CS4 and I’m working with AS3.
I’m trying to make a simple game, I only have 4 days working with flash, and this is the code I could come up with:

hero.gotoAndStop('still');
var vy:Number=0;
var Key:KeyObject = new KeyObject(stage);
var dy:Number=0;
var gravity:Number=1;
var canjump:Boolean=false;
var mobspd:Number=5;

stage.addEventListener(Event.ENTER_FRAME,onenter);

function onenter(e:Event):void{
function removeListeners():void {
   removeEventListener(Event.ENTER_FRAME, onenter);
}
dy+=gravity;
vy+=gravity;
mob2.x+=mobspd;
if(mob2.x>300){
mobspd-=5;
}
if(mob2.x<100){
mobspd+=5;
}
if(! mob2.hitTestPoint(hero.x,hero.y,true)){
mob2.gotoAndStop('normal');
}
if( wall1.hitTestPoint(hero.x,hero.y,true) && ! canjump){
hero.x+=40;
}
if( wall2.hitTestPoint(hero.x,hero.y,true) && ! canjump){
hero.x-=40;
}

if (mob2.hitTestPoint(hero.x,hero.y,true)) {
if (this.contains(mob2)) {
removeChild(mob2);
  }
  mobspd=0;
     var boom:MovieClip = new explosion();
     boom.x=mob2.x;
     boom.y=mob2.y;
     stage.addChild(boom);
     
    }
  

	
if(! mob.hitTestPoint(hero.x,hero.y,true)){
mob.gotoAndStop('lol');
}

if( mob.hitTestPoint(hero.x,hero.y,true)){
var boom:MovieClip = new explosion();
 boom.x=mob.x;
boom.y=mob.y;
stage.addChild(boom);
if(this.contains(mob)){
removeChild(mob);
	 }
		}

if (! level.hitTestPoint(hero.x,hero.y,true)) {
if(Key.isDown(Key.RIGHT)){
hero.x+=5;
hero.scaleX=1;
hero.gotoAndStop('walking');
}
if(Key.isDown(Key.LEFT)){
hero.x-=5;
hero.x-=2;
hero.scaleX=-1;
hero.gotoAndStop('walking');
			}
hero.y+=dy;
	}
if (dy>10) {
	dy=10;
	}
for (var i:int = 0; i<10; i++) {
if (level.hitTestPoint(hero.x,hero.y,true)) {
			
	vy=0;
canjump=true;

   if(Key.isDown(Key.UP) && canjump){
		dy=-10;
		canjump = false;
		hero.y+=dy;
	}
	
	if(hero.x>550){
		hero.x= 1;
		}
		if(hero.x<0){
			hero.x= 550-1;
			}
			
	
	if(Key.isDown(Key.RIGHT)){
	hero.x+=2;
	hero.scaleX=1;
	hero.gotoAndStop('walking');
	}else if(Key.isDown(Key.LEFT)){
	hero.x-=2;
	hero.scaleX=-1;
	hero.gotoAndStop('walking');
	} else if(Key.isDown(Key.DOWN)){
	hero.gotoAndStop('rasengan');
	}else{
	hero.gotoAndStop('still');
	}
	
	
	
	}

	}
}

I’m sorry if this isn’t the right way of posting a script, but I tryed searching in the forum for the proper way and I couldn’t find it… If you are going to delete the thread at least give me some directions to make the proper post :).

Now moving on, the game runs greats, the hero moves, the mob moves and an animation displays when eigther of the mobs are hitten, the problem is, that this animation doesn’t stop once is finnished, I’ve tryed looking out for a command to do this but I couldn’t find it, all I found were codes for AS2 witch didn’t work… So I would like your help there, and how to make the hero go to a different frame (a new world) then he touches something, or do something…
I would really, REALLY appreciate your help here, because I wanna move on in this world of gamming animation :).
I have the preview of the game uploaded, but I didn’t want to paste the link because I don’t know if that violates any of the rules I couldn’t find…
P.S: Sorry about any misspelling, english is not my native language, so I hope you can understand my post :).
Thank you all in advance!