Need Help Making a simple game

I need to know how make a game with loop or without looping the game. That I am learning how to code just only in AS3. There are a lot of the .fla that I can’t use. Like make the image move and check whatever the player is health okay or end the game. Can any one help with how game work for as3?