# Dynamic JPEG Preloader

**URL:** <https://forum.kirupa.com/t/dynamic-jpeg-preloader/222236>\
**Category:** Uncategorized\
**Created:** [April 11, 2007, 8:14pm UTC](https://forum.kirupa.com/t/dynamic-jpeg-preloader/222236 "2007-04-11T20:14:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![riveroaks](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@riveroaks](https://forum.kirupa.com/u/riveroaks)\
**Post date:** [April 11, 2007, 8:14pm UTC](https://forum.kirupa.com/t/dynamic-jpeg-preloader/222236/1 "2007-04-11T20:14:02Z")

</div>

I’m using Flash MX (not 2004)

I’m trying to create a preloader that I can place on thumbnails and an image display as they load their respective JPEG images. The problem is that I do not know how to get the load progress since getBytesLoaded() and getBytesTotal() do not seem to be working.

I looked into using listeners but all I can find is information about pairing listeners with the movieClipLoader class that I do not have access to.

Can someone enlighten me about how to get the load progress using Flash MX? I can easily create the rest of the preloader from there.

If its important, I have an empty movie clip called IMGHolder and use IMGHolder.loadMovie(MyIMGPath) to load the JPEG. So I’ve tried IMGHolder.getBytesLoaded() and it either returns 0 (initially) or the full 1901666 (end) bytes.

Further, if you think, rather if you KNOW, that .getBytesLoaded() should be working please let me know so I can try and figure out where its going wrong. Thank you.
