PDA

View Full Version : loaderInfo.bytesTotal



Esseti
September 28th, 2008, 09:20 AM
For some reason, I can't get bytesTotal to return its value when I upload my swf on a server, it works on my HDD and in the Flash environment. Here's the code.

stop();
function loadProgress(e:ProgressEvent):void {
if (e.bytesLoaded == e.bytesTotal) {
nextFrame();
} else {
trace(e.bytesLoaded, e.bytesTotal);
}
};
loaderInfo.addEventListener(ProgressEvent.PROGRESS , loadProgress);

Oh, and I've changed the permitions to 777.