ciao ragazzi ho un sito che ha questo tipo di preload:
Codice PHP:
bitload = _root.getBytesLoaded();
bittotal = _root.getBytesTotal();
percentuale = Math.floor((bitload/bittotal)*100)+"%";
setProperty ("bar", _xscale, (bitload/bittotal*100));
setProperty ("bar", _x, (lunghezza*(bitload/bittotal)/2)+(posizione-lunghezza/2));
if (percentuale=="100%") {
gotoAndPlay("inizio");
}else{
gotoAndPlay (4);
}
come faccio ad integrarlo con un file mp3 esterno?
Se vi serve il file mp3 lo carico così...
Codice PHP:
mySound=new Sound();
mySound.loadSound("track.mp3", true);
mySound.start();
mySound.onSoundComplete = function() {
mySound.loadSound("track.mp3", true);
};