(key.isDown())

i have a mc, with 3 frames, it has a stop(); on the first frame,

when the ‘n’ key is pressed, i want it to gotoAndStop(2);

this is what i have:

[AS]

onClipEvent(enterFrame) {
if (key.isDown(78)); {
this.gotoAndStop(2);
}
}

[/AS]

but it just goes straight to the second frame, with out the ‘n’ key being pressed, anyone know why?

my firend…

if statement dun have semicolon…
chechk ur codes

hehe. oops :slight_smile:

on (release, keyPress “n”) {
if (key.isDown(78)) {
trace(“siobi like Man U”);
}
}

after u had check ur code…
then look at this!!!

just change ur MC clips to buttons actions…
change the trace to ur goto statements…

thanks :slight_smile: