ciao a tutti,
sto provando a far andare avanti ed indietro la timeline con 2 pulsanti.
ecco il codice:

sulla timeline
codice:
function indietro() {
	this.onEnterFrame = function() {
		if (this._currentframe>1) {
			prevFrame();
		} else {
			delete this.onEnterFrame;
		}
	};
}
function avanti() {
	this.onEnterFrame = function() {
		if (this._currentframe>1 & this._currentframe<40) {
			nextFrame();
		} else {
			delete this.onEnterFrame;
		}
	};
}

sul pulsante indietro
codice:
on (press) {
	indietro();
}
on (release) {
	delete this.onEnterFrame;
}

sul pulsante avanti
codice:
on (press) {
	avanti();
}
on (release) {
	delete this.onEnterFrame;
}
mandando avanti la timeline scorre tutto bene e fluido,
mandando indietro la timeline scorre a scatti.

come posso risolvere?o migliorare il codice?