# Do you need to stream JPGs?

**URL:** <https://forum.kirupa.com/t/do-you-need-to-stream-jpgs/241685>\
**Category:** Uncategorized\
**Created:** [October 17, 2007, 1:23am UTC](https://forum.kirupa.com/t/do-you-need-to-stream-jpgs/241685 "2007-10-17T01:23:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevisazombie](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kevisazombie/32/3903_2.png) [@kevisazombie](https://forum.kirupa.com/u/kevisazombie)\
**Post date:** [October 17, 2007, 1:23am UTC](https://forum.kirupa.com/t/do-you-need-to-stream-jpgs/241685/1 "2007-10-17T01:23:43Z")

</div>

Hi all. I am building a slide show that loads external jpgs. I’m trying to build a preloader for this as there is some delay when switching between the images.

the code i have is:

```auto
checkLoadPic = function (){
if(imagePic.getBytesLoaded() < imagePic.getBytesTotal()){
    _root.backClip.load_txt.text = Math.floor(imagePic.getBytesLoaded()/imagePic.getBytesTotal()*100) +"%";
}else if(imagePic.getBytesLoaded() == imagePic.getBytesTotal()){
   

```

it works fine the issue is that it will not trigger the first part that updates the text. I ran a trace of the BytesLoaded and found that it was either 0 or the total amount. So the preloader is skipped and there is nothing happening during the delay. Which leads me to belive jpgs are not streamed. Am I missing something? thanks.
