onClipEvent (enterFrame) {
if (Key.isDown(40)) {
gotoAndPlay(351);
}
}
I'm pretty sure I'm going wrong on the first line but I have no idea what or how to change it. Advice?
onClipEvent (enterFrame) {
if (Key.isDown(40)) {
gotoAndPlay(351);
}
}
onClipEvent(enterFrame) {
if(Key.isDown(40)) {
gotoAndPlay(351);
}
}
Quote from Scarecrowtry
onClipEvent(enterFrame) {
if(Key.isDown(40)) {
gotoAndPlay(351);
}
}
spaces in between your functions and brackets may be causing problems. does it throw an error, or just not work? my coding is a little rusty and i'm only just reinstalling flash now, but if this doesn't work for you i'll have a more proper look at it next time i see this thread.
Quote from Chimaera40 is the down key... No idea why it's not working... syntax is right from what I can see; try using logical or (" || ") to define an alternate key, preferably a letter and see if that works.
EDIT// The code is inside the MovieClip right?
onClipEvent(enterFrame) {
if(Key.isDown(40)) {
_root.gotoAndPlay(420)
}
}