mmm ho fatto cosi, sembra andare...
codice:
function carica() {
img = new MovieClipLoader();
pBar._width = 120
pBar._visible = true
pBar.indeterminate = true;
img.onLoadProgress = function(target:MovieClip, bytesLoaded:Number, bytesTotal:Number):Void {
trace(target + ".onLoadProgress with " + bytesLoaded + " bytes of " + bytesTotal);
pBar.setProgress(bytesLoaded, bytesTotal);
perc = Math.round((bytesLoaded/bytesTotal)*100);
pBar.label = "LOAD "+perc+"%";
}
img.onLoadInit = function() {
pBar._visible = false
};
img.loadClip("movie.swf", clip);
}
carica()