# Strange behavior of the Preload bar

**URL:** <https://forum.kirupa.com/t/strange-behavior-of-the-preload-bar/314813>\
**Category:** Uncategorized\
**Created:** [October 9, 2010, 11:15am UTC](https://forum.kirupa.com/t/strange-behavior-of-the-preload-bar/314813 "2010-10-09T11:15:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LS05](https://avatars.discourse-cdn.com/v4/letter/l/e19b73/32.png) [@LS05](https://forum.kirupa.com/u/LS05)\
**Post date:** [October 9, 2010, 11:15am UTC](https://forum.kirupa.com/t/strange-behavior-of-the-preload-bar/314813/1 "2010-10-09T11:15:53Z")

</div>

Hi guys,  
I’m using BulkLoader for loading a background image and an image.  
When the preload start it makes strange movement instead of going straight to the end.  
If you don’t understand you can see it live here: [http://www.sltrading.it/alborgoantico](http://www.sltrading.it/alborgoantico)

This is very annoying because i don’t know what is the problem unless it’s a library (bulkloader) problem (i hope no :red: ).

Here the code for the preloading:

```auto
		
loader.add("foto.jpg",{id:"item2"});
loader.add("background.jpg",{id:"sfondo"});
loader.addEventListener(ProgressEvent.PROGRESS, onItemProgress);
loader.addEventListener(Event.COMPLETE, onItemComplete);
loader.start();

function onItemProgress(e:ProgressEvent)
{
var offset:Number = Math.floor(241*e.bytesLoaded/e.bytesTotal);
TweenMax.to(bar, 0.5, {width:offset});
}

```

bar it’s a sprite within the graphic of a generic preload bar.  
Maybe is the use of the TweenMax? I use it for a smooth preload.  
Please help me guys :hr:
