I’ve created a simple menu that fades in with a key press and fades out on releasing the keypress. It seems to be working but it only works once. If I press again - nothing happens. Can anyone help? Please? I’ve uploaded the file.
You solve it - I bring marshmallows! No, I make joke - you like laugh?
onClipEvent (load) {
_root.menuin._alpha = 0;
}
onClipEvent (keyDown) {
if (Key.isDown(32)) {
_root.menuin._alpha += 10;
}
}
onClipEvent (keyUp) {
_root.menuin.onEnterFrame = function() {
if (_root.menuin._alpha>0) {
_root.menuin._alpha -= 10;
}
};
}