mi hanno dato questo codice per importare mp3 con preload
suono = new Sound();
suono.loadSound("prova.mp3", true);
this.onEnterFrame=function(){
tot=suono.getBytesTotal()
car=suono.getBytesLoaded()
this.perc=int(car/tot*100)+"%"
if (car==tot and car>1024){
trace("ciao")
//suono.start()
delete this.onEnterFrame
}
}
vorrei "integrarlo" a questo preload però
_root.onEnterFrame = function(){
if (this.getBytesLoaded() == this.getBytesTotal()){
delete this.onEnterFrame
gotoAndPlay(2)
}else{
this.istanzaCampoTesto_txt.text = Math.round((this.getBytesTotal()-this.getBytesLoaded())/(this.getBytesTotal()/1000))
}
updateAfterEvent()
}
ho fatto diversi tentativi ma non riesco
potete darmi una mano?