# Setting up a preloader

**URL:** <https://forum.kirupa.com/t/setting-up-a-preloader/198164>\
**Category:** Uncategorized\
**Created:** [August 22, 2006, 9:14pm UTC](https://forum.kirupa.com/t/setting-up-a-preloader/198164 "2006-08-22T21:14:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![treybraid](https://avatars.discourse-cdn.com/v4/letter/t/7c8e57/32.png) [@treybraid](https://forum.kirupa.com/u/treybraid)\
**Post date:** [August 22, 2006, 9:14pm UTC](https://forum.kirupa.com/t/setting-up-a-preloader/198164/1 "2006-08-22T21:14:00Z")

</div>

hey i set up a preloader for my site yesterday… it is working to some degree… i was hoping someone could help me out… when you go to the site the preloader will appear; but, the progress bar doesn’t load…

im using the components: the loader and the progress bar from the interface group of components…

here is my site: [www.atlantareds-msbl.com](http://www.atlantareds-msbl.com)

this is the script that was placed in frame 1 of my preloader and ive got the preloader set to " polled "

var pBarListener:Object=new Object();  
pBarListener.progress=function(eventObject){  
eventObject.target.\_visible=true;  
};  
pBarListener.complete=function(eventObject){  
eventObject.target.\_visible=false;  
};  
pBar.addEventListener(“progress”,pBarListener);  
pBar.addEventListener(“complete”,pBarListener);

also since my main movie is a little hefty there is a slight delay while it load’s… and ive noticed there is a delay as well with my preloader… what should i do…right now ive got the preloader and then my main scene within the same movie…

trey
