Hello, i am working with flash cs5 and i have a basic actionscript code that looks like this:
Actionscript Code:
this.onKeyDown = function() {
if (Key.isDown(Key.SPACE)) {
gotoAndStop(2);
}
}
This makes it so when i press on space it will gotoAndStop 2... But i put another code below it:
Actionscript Code:
this.onKeyDown = function() {
if (Key.isDown(Key.UP)) {
gotoAndStop(2);
}
}
And it works but the only problem is that it will only read one of them, so space will link it to frame 2 and vice versa, any way i can get them to both work at the same time?