# Problem with a preloader that's live on a site

**URL:** <https://forum.kirupa.com/t/problem-with-a-preloader-thats-live-on-a-site/297584>\
**Category:** Uncategorized\
**Created:** [October 5, 2009, 5:08pm UTC](https://forum.kirupa.com/t/problem-with-a-preloader-thats-live-on-a-site/297584 "2009-10-05T17:08:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisdegrote](https://avatars.discourse-cdn.com/v4/letter/c/e8c25b/32.png) [@chrisdegrote](https://forum.kirupa.com/u/chrisdegrote)\
**Post date:** [October 5, 2009, 5:08pm UTC](https://forum.kirupa.com/t/problem-with-a-preloader-thats-live-on-a-site/297584/1 "2009-10-05T17:08:35Z")

</div>

Hey people,

I’ve got a preloader that works perfectly when I simulate a download in flash. But when I upload the file to my site, it does nothing at all. [http://www.seniorict.com/finaleseniorict.html](http://www.seniorict.com/finaleseniorict.html)

This is the code of my site  
[AS]  
stop();

this.addEventListener(Event.ENTER\_FRAME, preload1);

function preload1 (e:Event):void{

```
var total_bytes:Number = this.stage.loaderInfo.bytesTotal;
var loaded_bytes:Number = this.stage.loaderInfo.bytesLoaded;
rectangle_clip.scaleX = loaded_bytes/total_bytes;
text_clip.text = Math.floor((loaded_bytes/total_bytes)*100)+"%";
if (total_bytes==loaded_bytes){
	gotoAndPlay(10);
	this.removeEventListener(Event.ENTER_FRAME, preload1);
	}

```

}

[/AS]

What could be the cause of this issue?

Thanks for your time!
