Controlling movement w/ arrows

i read the tutorial, and was wondering if there was a way to move something with two buttons being pressed at the same time ie pushing right and up make the object move on the x access 5 and the y access -5

On your movie clip[AS]onClipEvent (load) {
speed = 5;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.UP) && Key.isDown(Key.RIGHT)) {
_x += speed;
_y -= speed;
}
}[/AS]

thanks claudio :slight_smile:

No problem :thumb: