Réponse acceptée !
Hello,
n'utilise pas un bouton mais un
movieclip (ton animation rond-carré). Tu lui donne un nom d'occurence (
_monBouton par exemple)
ensuite sur un
calque a part (PAS sur le clip donc) tu places le script suivant :
this._monBouton.gotoAndStop(1);
this._monBouton.onRollOver = function() {
this.onEnterFrame = function() {
this.nextFrame();
if (this._currentframe == this._totalframes) {
detete(this.onEnterFrame);
}
};
};
this._monBouton.onRollOut = function() {
this.onEnterFrame = function() {
this.prevFrame();
if (this._currentframe == 1) {
detete(this.onEnterFrame);
}
};
};
stop()
@+
