Hello,
I have the following script on a movie clip which fades the clip in when your mouse is over the MC and fades it out when your mouse moves off. It works fine, but it “flickers” when its faded in all the way. How can I stop that?
[AS]
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.onEnterFrame = function() {
if (this._alpha<80) {
this._alpha += 3;
} else {
this._alpha = 80;
delete this.onEnterFrame;
}
};
} else {
this.onEnterFrame = function() {
if (this._alpha>40) {
this._alpha -= 3;
} else {
this._alpha = 40;
delete this.onEnterFrame;
}
};
}
}
[/AS]