# Preloader

**URL:** <https://forum.kirupa.com/t/preloader/142765>\
**Category:** Uncategorized\
**Created:** [March 31, 2005, 9:33am UTC](https://forum.kirupa.com/t/preloader/142765 "2005-03-31T09:33:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![prey](https://avatars.discourse-cdn.com/v4/letter/p/e56c9b/32.png) [@prey](https://forum.kirupa.com/u/prey)\
**Post date:** [March 31, 2005, 9:33am UTC](https://forum.kirupa.com/t/preloader/142765/1 "2005-03-31T09:33:56Z")

</div>

hello, this was probably asked before. but i cant seem to form a search term to search for this.

i have a preloader.

1 problem is it doesnt show the progress right. it just stays on one number and then loads the movie.

2nd problem is say the movie was loaded i refresh the page preloader still comes up. i mean the movie’s already loaded why cant it skip the preloader?

code is  
Code:  
LOADED = Math.round(getBytesLoaded());  
TOTAL = Math.round(getBytesTotal());

if (LOADED \>= TOTAL)  
{  
GoToAndPlay(“main”,1);  
}else{  
percent = LOADED / TOTAL \* 100 + ‘%’;  
GotoAndPlay(1);  
}  
if you could help

thank you
