First Person Shooter

I am making a first person shooter and I have a serious problem. I am trying to recreate a Time Crisis like game in flash and am puzzled about the crouch behind function. I want to use the (spacebar) as a way to duck out of enemy site and reload automatically. Then on release the character will return to his position in enemy fire and will then be allowed to shoot again. Any suggestions/sample code would be appreciated. :smiley:


if(Key.isDown(Key.SPACE)){
	reload();
	stance("duck");
} else {
	stance("walk");
}

or something ?