in remoto funziona anche il loading.(e quindi il getBytesTotal , che ho stampato a video).
online non funziona il loading ma il file viene caricato.
il codice deriva da un tutorialcodice:switchTrack = function (trackNr) { snd.stop(); snd.loadSound(soundUrls[trackNr]); //loading bar bt = snd.getBytesTotal(); this.onEnterFrame = function () { bl = snd.getBytesLoaded(); pr = bl/bt*100; percent_txt.text = Math.floor(pr)+'%'; bar_mc._xscale = pr; if (pr == 100) { delete this.onEnterFrame; } } //fine loading bar }

Rispondi quotando