I have a movie with a blank mc on the stage. I have it set up so that when you press the RIGHT keyboard key it loads another movie in that mc. Here’s the code for that:
stop();
this.onKeyDown = function() {
if (Key.getCode() == Key.RIGHT) {
loadMovie("ball.swf", blank_mc);
} else if (Key.getCode() == Key.LEFT) {
gotoAndPlay(2);
}
};
Key.addListener(this);
If I have more than one movie, how do I code it so that when I press the RIGHT key again it loads another movie as well as goes back when I press the LEFT?