Perchè l'onLoad non funziona. Devi scrivere:
codice:this.direzione = "avanti"; this.onEnterFrame=function(){ if (this.direzione == "avanti") { this.gotoAndStop(_currentframe + 1); } else { this.gotoAndStop(_currentframe - 1); } }
Perchè l'onLoad non funziona. Devi scrivere:
codice:this.direzione = "avanti"; this.onEnterFrame=function(){ if (this.direzione == "avanti") { this.gotoAndStop(_currentframe + 1); } else { this.gotoAndStop(_currentframe - 1); } }