hi, I need a code
…
if any key is pressed the movie must go to the specified frame, if not stop
thanxs
hi, I need a code
…
if any key is pressed the movie must go to the specified frame, if not stop
thanxs
Welcome to the forums 00r00.
thanx
Welcome
I still can’t find the anykey…
INsert a moveiclip titled “mouse actions” or “mouse control” or something like that. Now put these actions on the movie clip…
[AS]
onClipEvent (keyDown) {
gotoAndPlay(2);
}
onClipEvent (keyUp) {
stop();
}
[/AS]
I tihnk that’s what you wanted. If you wanted it to not stop in the middle of a frame when teh key is released, just get rid of that part of teh code and place a stop action at the frist frame. I tihnk you can figure out how that code works.
:p: aussy
Place this on the main timeline.[AS]myListener = {onKeyDown:function () {
_root.gotoAndStop(2);
}};
Key.addListener(myListener);[/AS]
:: Copyright KIRUPA 2024 //--