# Problem with preloader

**URL:** <https://forum.kirupa.com/t/problem-with-preloader/143516>\
**Category:** Uncategorized\
**Created:** [April 6, 2005, 3:23pm UTC](https://forum.kirupa.com/t/problem-with-preloader/143516 "2005-04-06T15:23:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bob\_rock](https://avatars.discourse-cdn.com/v4/letter/b/71e660/32.png) [@bob\_rock](https://forum.kirupa.com/u/bob_rock)\
**Post date:** [April 6, 2005, 3:23pm UTC](https://forum.kirupa.com/t/problem-with-preloader/143516/1 "2005-04-06T15:23:20Z")

</div>

:wasted: Hi !

I’m having problem with my preloader it just jumps on 60% percent I’m not sure but I think the problem is with my actionscript when i load image on my page, actionscripts are :

**For my preloader :**

loadedbytes = getBytesLoaded();  
totalbytes = getBytesTotal();  
loadedkbytes = Math.ceil(loadedbytes/1000);  
totalkbytes = Math.ceil(totalbytes/1000);  
if (loadedbytes == totalbytes) {  
nextScene ();  
}  
frame = int(loadedbytes/(totalbytes/100));  
tellTarget (\_root.mainloader.loader) {  
gotoAndStop (\_root.frame);

}

**Then on my main page is actionscript for loading image :**

\_root.createEmptyMovieClip(“pic\_holder”,1);  
pic\_holder.loadMovie(“blahblah.jpg”);  
pic\_holder.\_x = pic\_holder.\_y = 50 ;

I think that when preloader loads whole Scene 2 it’s just jumps on 60% becouse it loads the image and the image is 60% size of the whole Scene 2?? Could this be it ? If this is it is there any other way to load image so that my preloader will work?
