Now go back onto the main stage. You should have you guy in the center. Select him and hit F9 to open the actions pannel of your character MC. Now put the following code into the pannel:
onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT)) {
if (_currentframe != 6) {
gotoAndStop(6);
}
} else if (Key.isDown(Key.RIGHT)) {
if (_currentframe != 8) {
gotoAndStop(8);
}
} else {
if (_currentframe == 6) {
gotoAndStop(5);
}
if (_currentframe == 8) {
gotoAndStop(7);
}
}
if (Key.isDown(Key.UP)) {
if (_currentframe != 2) {
gotoAndStop(2);
}
} else if (Key.isDown(Key.DOWN)) {
if (_currentframe != 4) {
gotoAndStop(4);
}
} else {
if (_currentframe == 2) {
gotoAndStop(1);
}
if (_currentframe == 4) {
gotoAndStop(3);
}
}
}