allora sul primo frame del tuo filmato principale
codice:
function preload(clip){
clip.stop();
car = clip.getBytesLoaded();
tot = clip.getBytesTotal();
perc = Math.round((car/tot)*100);
clip.createTextField("testo", 1, (this._width/2), (this._height/2), 200, 20);
clip.testo.wordWrap = true;
testoformat = new TextFormat();
testoformat.color = "0x123466";
testoformat.font = "Verdana";
clip.testo.setTextFormat(testoformat);
if(!isNaN(perc)) {
clip.testo.text = "Caricamento..."+perc+"%";
clip.testo.setTextFormat(testoformat);
}
if (car == tot && car > 1024) {
clearInterval(a);
clip.testo.text = "";
clip.play;
}
}
poi quando fai i tuoi loadMovie supponiamo in un clip istanziato contenitore
al pulsante che lancia i filmati esterni scriverai
codice:
on(release){
loadMovie("file.swf", "contenitore");
a = setInterval(preload, 50, contenitore);
}
in automatico avrai il tuo preload