# totalBytes works only on local machine

**URL:** <https://forum.kirupa.com/t/totalbytes-works-only-on-local-machine/45116>\
**Category:** flash\
**Created:** [March 11, 2004, 4:59am UTC](https://forum.kirupa.com/t/totalbytes-works-only-on-local-machine/45116 "2004-03-11T04:59:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![k\_smaert](https://avatars.discourse-cdn.com/v4/letter/k/f05b48/32.png) [@k\_smaert](https://forum.kirupa.com/u/k_smaert)\
**Post date:** [March 11, 2004, 4:59am UTC](https://forum.kirupa.com/t/totalbytes-works-only-on-local-machine/45116/1 "2004-03-11T04:59:21Z")

</div>

I have made a preloader showing the progress of dynamically added images. The code works fine when i play the movie on local machine, but when i play the movie from the server bytesTotal is always 0. It even says 0 after the images has finished loading.

what i’m doing is basically: createEmptyMovieClip() , i then use a movieClipLoader to load jpeg into that empty movieclip. the movieClipLoader has a listener attached and with the listener i use the function onLoadProgress() to display bytesLoaded and bytesTotal

all of these things occur within one function…

bytesLoaded works fine both on local machine and from the server
