# Wierd Pre-loader problem

**URL:** https://forum.kirupa.com/t/wierd-pre-loader-problem/279724
**Category:** flash
**Created:** [January 18, 2009, 1:41pm UTC](https://forum.kirupa.com/t/wierd-pre-loader-problem/279724 "2009-01-18T13:41:14Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![bottleHeD](https://avatars.discourse-cdn.com/v4/letter/b/7ea924/32.png) [@bottleHeD](https://forum.kirupa.com/u/bottleHeD)
#### Post date: [January 18, 2009, 1:41pm UTC](https://forum.kirupa.com/t/wierd-pre-loader-problem/279724/1 "2009-01-18T13:41:14Z")

</div>

I have a preloader script that i’ve used for various websites/online-presentations. For some reason though, it doesn’t work properly with this one site i’ve created. I’ve tried variations, but the issue is the same - the pre-loader shows when ~92% has been loaded.

Example where it works fine - [http://equilateraldesigns.com/prism/newsite.html](http://equilateraldesigns.com/prism/newsite.html)

Same script mucking up - [http://equilateraldesigns.com/cariya/site.html](http://equilateraldesigns.com/cariya/site.html)

This is my code (pasted on the movie clip, first frame) -

```auto
onClipEvent (load) {
	total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
	loaded = _root.getBytesLoaded();
	percent = int(loaded/total*100);
	percen1 = ""+percent+"%";
	gotoAndStop(percent);
		if (loaded == total) {
		_root.play();
	}
}

```

Does anyone have any idea why this is happening?
