Hi all,
I have wrote a function to fade in a movieClip, but it doesn’t seem to work and I carn’t see why?
I have a MC on the stage with 0 alpha and a btn to call the function.
I’m sure it’s something simple.
function fadeIn(num) {
this.onEnterFrame = function() {
this._alpha += num;
if (this._alpha>=100) {
this._alpha == 100;
delete this.onEnterFrame;
}
};
}
one_btn.onRelease = function() {
one_mc.fadeIn(10);
};