Could someone help me with why the fadein function isn’t working in this movie?
It just comes up to a point and then stops. Does it have soemthing to do with the fact taht I’m loading the jpg from outside of the movie?
Could someone help me with why the fadein function isn’t working in this movie?
It just comes up to a point and then stops. Does it have soemthing to do with the fact taht I’m loading the jpg from outside of the movie?
Its because it won’t keep the speed value. You will need to set the speed as a property of the movie clip. ie:
MovieClip.prototype.fadeIn = function(speed) {
this._alpha = 0;
this._fadeInSpeed = speed;
this.onEnterFrame = function() {
this._alpha += this._fadeInSpeed;
if (this._alpha>=100) {
delete this.onEnterFrame;
}
};
};
Hope that helps.
Thanks mate… that cleared things up!
:: Copyright KIRUPA 2024 //--