# Preload a picture

**URL:** <https://forum.kirupa.com/t/preload-a-picture/240551>\
**Category:** flash\
**Created:** [October 3, 2007, 11:13pm UTC](https://forum.kirupa.com/t/preload-a-picture/240551 "2007-10-03T23:13:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leo75](https://avatars.discourse-cdn.com/v4/letter/l/779978/32.png) [@Leo75](https://forum.kirupa.com/u/Leo75)\
**Post date:** [October 3, 2007, 11:13pm UTC](https://forum.kirupa.com/t/preload-a-picture/240551/1 "2007-10-03T23:13:32Z")

</div>

Hi there!  
I got suck on my little project of a pictures… I am trying to preload a picture. Since they are quite big, i want the user to know that it is loading…  
So far, no luck.  
Does anyone have a nice simple code, example for me?  
I am able to load a xml and calculate the totalbytes and bytesloaded, but cant with the JPG that i am trying to load.  
Thanks again.  
Cheers.  
Leo.  
:sen:
