# Preloading dynamic data with a visual preloader

**URL:** https://forum.kirupa.com/t/preloading-dynamic-data-with-a-visual-preloader/99236
**Category:** Uncategorized
**Created:** [January 16, 2004, 6:01am UTC](https://forum.kirupa.com/t/preloading-dynamic-data-with-a-visual-preloader/99236 "2004-01-16T06:01:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Blenderben](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/blenderben/32/74_2.png) [@Blenderben](https://forum.kirupa.com/u/Blenderben)
#### Post date: [January 16, 2004, 6:01am UTC](https://forum.kirupa.com/t/preloading-dynamic-data-with-a-visual-preloader/99236/1 "2004-01-16T06:01:22Z")

</div>

Okay, to first get an idea of what i want…

go to [http://www.kirupa.com/developer/mx/preloader\_transition.htm](http://www.kirupa.com/developer/mx/preloader_transition.htm)

i followed this tutorial fine…its all good, i even made the profile, gallery, photos.swf to load from a completely different site. Its all good. Not my problem now is. I want to create a visual preloader for this thing. As you can see. As the movie is preloading each separte swf the animation for the loading screen doesn’t tell much. I need the users to see exactly how far their download has gone. How can i do this, from this tutorial given? I tried adding the preloader given here

([http://www.kirupa.com/developer/mx/preloader.htm](http://www.kirupa.com/developer/mx/preloader.htm))

obviously it doesn’t work…It will only preload the default profile swf. But when i click on gallery, it doesn’t show the preloading progess. i tried changing the code a bit to maybe make it work but i failed. Anywayz, here is my code for the preloader. Its just the movie clip in frame one, of the stage, on a separate “preloader” layer.

onClipEvent (enterFrame)  
{  
var bytes = \_root.section.getBytesTotal();  
var bytes\_loaded = \_root.section.getBytesLoaded();  
if (bytes\_loaded == bytes)  
{  
this.kirupatxt = “movie loaded”;  
}  
else  
{  
this.kirupatxt = “loading (” + bytes\_loaded + “/” + bytes +")";  
}  
}

I highly recommend you all take a look at both links and go through them. Then you will know what I am talking about.  
_if you really need my fla, just ask me, i’ll include it in the next post_ :kir:
