codice:
function preload() {
car = vuoto.getBytesLoaded();
tot = vuoto.getBytesTotal();
perc = Math.round((car / tot) * 100);
stato.text = "Loading . . . " + perc + "%";
if (car == tot && vuoto._url != _root.url) {
clearInterval(a);
stato.text = "";
vuoto._alpha=100;
}
}
vuoto._alpha =0
vuoto.loadMovie("mad1.jpg");
a = setInterval(preload, 200);
Sullo stage devi avere un mc vuoto con nome instanza vuoto,li viene caricata l'immagine, e un testo dinamico con nome instanza stato. Il file deve chiamarsi mad1.jpg