how do I make a button fade out when I click on it? I’ve tried to put the _alpha, but couldnt fade it =(
Put the button in a movie clip. Then use the _alpha property.
Regards,
Viru.
but how do I make it slowly fade away?
Lost just showed me this, apply this to your button.
on (release) {
this.onEnterFrame = function() {
//if the alpha is greater than 0, decrease by 10, else delete the onEnterFrame
this._alpha>0 ? this._alpha -= 10 : delete this.onEnterFrame;
};
}
ohh, ok. ty