# Flash preloader help!

**URL:** https://forum.kirupa.com/t/flash-preloader-help/292548
**Category:** Uncategorized
**Created:** [July 15, 2009, 4:25pm UTC](https://forum.kirupa.com/t/flash-preloader-help/292548 "2009-07-15T16:25:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sta777](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@sta777](https://forum.kirupa.com/u/sta777)
#### Post date: [July 15, 2009, 4:25pm UTC](https://forum.kirupa.com/t/flash-preloader-help/292548/1 "2009-07-15T16:25:46Z")

</div>

Hi,

Was wondering if someone could help me in getting some kind of preloader to display when I call an image from an xml file into an empty movie clip, please?

I have this piece of code in my actionscript on the first frame of my movie,(amongst other code), which i think has something to do with it.

```auto

bitlistener.onLoadProgress = function(target:MovieClip, bytesLoaded:Number, bytesTotal:Number):Void {
        amountLoaded = Math.floor((bytesLoaded/bytesTotal)*100);
};

```

on the second frame i call the image/xml:

```auto

backImage.load("xml/home.xml");

```

how would i add a something that displays the loading progress of the image being loaded from the xml?

full code available here. [http://www.blog.noponies.com/archives/3](http://www.blog.noponies.com/archives/3)

many many thanks.
