i suck at programming and i need an actionscript that makes the button fade in and out on mouseover…
thanks…
:rock: :ninja:
tutorials galore in the tutorials section. You will find what you want there.
// prototype
MovieClip.prototype.fade = function(minAlpha, maxAlpha, speed) {
this._alpha = this.alpha=minAlpha;
this.onRollOver = function() {
this.alpha = maxAlpha;
};
this.onRollOut = function() {
this.alpha = minAlpha;
};
this.onEnterFrame = function() {
this._alpha += (this.alpha-this._alpha)/speed;
};
};
// usage
myMovieClip.fade(40, 100, 10);
of course, you can change the the minAlpha, maxAlpha and speed values to anything you want =)
thank you much=)
Well, I was trying to encourage you to fish. Kax gave you the fish buffet.
I’m glad you got your answer, but if you want to reach these conclusions on your own, I would still encourage you to start with the turorials.
no problem karacot
and welcome to kirupa forum!! =)
also, i must say that montoya is totally right. you should always experiment on your own with the things you learn in the tutorials.