# loaderInfo.bytesTotal

**URL:** <https://forum.kirupa.com/t/loaderinfo-bytestotal/271778>\
**Category:** flash\
**Created:** [September 28, 2008, 1:20pm UTC](https://forum.kirupa.com/t/loaderinfo-bytestotal/271778 "2008-09-28T13:20:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Esseti](https://avatars.discourse-cdn.com/v4/letter/e/bb73d2/32.png) [@Esseti](https://forum.kirupa.com/u/Esseti)\
**Post date:** [September 28, 2008, 1:20pm UTC](https://forum.kirupa.com/t/loaderinfo-bytestotal/271778/1 "2008-09-28T13:20:13Z")

</div>

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.
