AS3 : Help, character problem

Good evening guys,

I recently posted a thread on how to create a platform game, I only got a rough idea but anyway ive created my character. i created the necessary functions like checking key up and downs and also moving the character, I’ve attached a .fla and .as file.

When i press left or right, my character is suppose to show a running animation. My problem is that, the animation doesn’t loop. It stops at the last frame of the movie clip.

Problem #2

I’m searching for some tutorials on doing the centering of the character to the game level and also how to create the game level(environment). If anyone has any idea please help me on this too.

Please give me some advice on this, all help is appreciated.