I have this code on a movie clip:
onClipEvent (enterFrame) {
this.gotoAndStop ()
if (Key.isDown(Key.DOWN)) {
this.gotoAndPlay ()
}
}
But the problem is, when I let go of the arrow key, the movie keeps on playing. How could I make this work, so that the movie clip would go to the first frame when you let go of the arrow key?
Because this code didn’t work:
onClipEvent (enterFrame) {
this.gotoAndStop ()
if (Key.isDown(Key.DOWN)) {
this.gotoAndPlay ()
} else {
this.gotoAndStop (1)
}
}
I just don’t know how to set the true and false statements. Could someone help me?
Thanks in advance[color=DeepSkyBlue]
!GB! - PEACE -
[/color]