Display overall progress for FileReference.load()
function files_select(e:E开发者_Go百科vent)
{
for (var k = 0; k < file_ref_list.fileList.length; k++) {
var currFile:FileReference = file_ref_list.fileList[k];
currFile.load();
currFile.addEventListener (Event.COMPLETE, onDataLoaded );
}
}
Now, How can i display overall progress for FileReference.load() in percentage. can i use LoaderMAX ?? or any other alternative.
Please Help. Thanx.
assign a ProgressEvent to you FileReference object. the documentation contains sample code:
flash.net.FileReferenece - ProgressEvent
精彩评论