Key press help

Ok, how do you: when you (lets say) press up on the key board, have a movie clip play, but when you release up, make it stop on a frame?

this does it :slight_smile:
give you’re movie an instance name of ‘myMovieClip’ and have this script on the main timeline. NOT the movieclip :slight_smile:

Key.addListener(myMovieClip)

myMovieClip.onKeyDown = function() {
this.play()
}

myMovieClip.onKeyUp = function() {
this.gotoAndStop(framenum)
}

but what if I’m using multiple buttons? like up down left right, how do I signify the certain buttons?

when I did what you said, when i held the key down, it kept going to frame one and stopping :frowning: