9 Replies Latest reply on Mar 20, 2008 10:42 PM by Ashpotter

    hitTest and the Keyboard

      I have a flash game where you use the arrow keys to move an animated person who is a movieclip (instance= ninja). I also have another movie clip called door (instance= door)(bet you can figure out what i'm doing with him). I want to make it so that when the ninja touches the door and the spacebar is pressed, the main timeline will gotoAndStop to a specific frame in a different scene. I will also have other doors on different frames that i will do the same thing with different frame. What will the be the most efficiant way to do this?

      Other note (less important). How can you actionscript a button so that it will turn on and off music?