Player Direction: MERCS STYLE

Hey. Im having a few problems. My code is simple enough and i dont really want to complicate thnigs however my game is not dissimilar to the game mercs apart from i cant seem have have moe than one idle direction…its bugging me.

My player moves left right up and down and ive used xscale for left and right.

for idles ive used !if key.isdown && !key.isdown
gotoandplay(“idle”); or whetva

but how can u make it so when the up or down keys are pressed it goes to their idle animation respectivly.

Flash masters over to you…:hitman: