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.