I have a main MC which is composed of 4 frames. Each of these frames are an instance of another MC within my library, corresponding to North, South, East, West. These nested MCs each have 3 frames in them that when animated make the character look like they are walking in their respective direction.
Now my issue is, when the player presses down on one of the arrow keys, it causes the players MC to gotoAndPlay() a certain frame within the main MC, which works as it is supposed to (for the most part). What happens though, is when I depress the key, I want the animation to stop, but the character to still be in the MC of the appropriate direction. I have tried this using the stop() coding method (using the proper syntax to stop the animation), but it does nothing, and the animation from the nested MC keeps going.
My second issue is, if I press and hold down a key, the animation doesn’t occur, but continually resets it to the gotoAndPlay() frame. I understand why this is happening, but I am unsure how to change it so that by hitting a key, it will cause the MC to change frame, but not interrupt the frames from playing.
As a reference here is the source .as i am referring to.
[EDIT] I needed to give each nested MC instance and instance name and call it that way.