Plz help

hey,
this is a simple problem, im probably really stupid not to be able to figure it out but, when you apply a certain action to an MC like say :-

onClipEvent (mouseDown) {
_root._alpha = 50
}

or something similar, what else do you add to make it gradually fade rather than just straight away as soon as you click? i’ve been puzzling over it and i can’t figure it, i must be stupid or something…

any help would be greatly appreciated :slight_smile: cheers

Put this code on the button:

onClipEvent (load) {
amount = 5;
go = false;
count = 0;
}
onClipEvent (mouseDown) {
go = true;
}
onClipEvent (enterFrame) {
if (go && count<=10) {
_alpha -= amount;
count++;
}
}