[FMX]need help with this script

some one gelp me with this…i get confused with actionscript

onPress() {
_root.guy.gotoAndPlay(31);
};

its for showing the movement of the guy. just put in any direction key in the thing and send it back to me! thanks! :hitman: