codice:suono = new Sound(); suono.loadSound("prova.mp3", true); _root.onEnterFrame = function() { tot = suono.getBytesTotal(); car = suono.getBytesLoaded(); this.perc = int(car/tot*100)+"%"; this.istanzaCampoTesto_txt.text = Math.round((this.getBytesTotal()-this.getBytesLoaded())/(this.getBytesTotal()/1000)) if (car == tot && car>1024 && this.getBytesLoaded() == this.getBytesTotal()) { trace("ciao"); //suono.start() gotoAndPlay(2); delete this.onEnterFrame; } };

Rispondi quotando