hi,
i have a button that i would like to cursor over and that image slowly fades revealing the image behind and when the cursor is moved the image slowly fades in.
the coding that ive gathered so far from a few sources is as follows:
var fade;
mslogo_c._alpha = 0;
MovieClip.prototype.HitMe = function(goTo, returnTo){
this.onEnterFrame = function(){
if(this.hitTest(_xmouse, _ymouse, true)){
if (this._alpha < 100) { this._alpha += 5; };
}else{
if (this._alpha > 0) {
this._alpha -= 5;
}else{
delete this.onEnterFrame;
setRollOvers();
}
}
}
};
setRollOvers = function(){
mslogo_c.onRollOver = function(){
this.HitMe(10, 1);
delete this.onRollOver;
}
}
setRollOvers();
any help or direction would be great