all groups > flash actionscript > september 2005 >
You're in the

flash actionscript

group:

checking file size on client machine


checking file size on client machine jmrak
9/7/2005 8:30:16 PM
flash actionscript:
Re: checking file size on client machine NSurveyor
9/7/2005 8:51:35 PM
Maybe... where is the flash content? I think it has to be on the clients
machine as well..., try using loadvars, ex:

traceSize("image 001.jpg");
traceSize("image 002.jpg");
function traceSize(file) {
var lv = new LoadVars();
lv.onLoad = function(s) {
if (s) {
var mb = lv.getBytesLoaded()/1048576;
trace("File: "+file);
trace("Size: "+Math.round(mb*100)/100+" mb");
}
};
lv.load(file);
}
AddThis Social Bookmark Button