Ciao, ho dei movie clip che sono i miei pulsanti e questo codice associato:
MovieClip.prototype.useHandCursor = false;
MovieClip.prototype.elastic = function(w, h, k) {
this.vx *= k;
this.vy *= k;
this.vx += (w-this._xscale)/50;
this.vy += (h-this._yscale)/50;
this._xscale += this.vx;
this._yscale += this.vy;
};
this.onEnterFrame = function() {
if (k == 1) {
mc1.elastic(100,1120,.35);
mc2.elastic(100, 100, .15);
mc3.elastic(100, 100, .60);
mc4.elastic(100, 100, .60);
mc5.elastic(100, 100, .55);
testo3._y = testo4._y=Math.floor(mc3._y+16);
testo2._x = testo4._x=Math.floor(mc1._x+mc1._width+45);
};
for (i=1; i<=10; i++) {
this['mc'+i].onRollOver = function() {
k = this._name.substring(2);
};
this['mc'+i].onRollOut = function() {
delete k;
};
}
mc1.onRelease=function(){
loadMovieNum("io.swf",50)
}
Vorrei fare in modo che quando il pulsante mc1 viene premuto e quindi anche rilasciato il suo colore cambi, ma non ci riesco...
come posso fare?
Grazie

Rispondi quotando