Semplice:

codice:
if(this.direzione == undefined)this.direzione = "avanti";
this.onEnterFrame=function(){ 
	if (this.direzione == "avanti") { 
		this.gotoAndStop(_currentframe + 1); 
	} else { 
		this.gotoAndStop(_currentframe - 1);
	} 
}