Preloader not preloading

Hi all

I have a preloader that doesnt show before about 90% of the movie has loaded, which it then ticks down the last 10% on screen. Is there a way to get it to show from the time the web page with my swf on it has first been opened. The swf is about 1.5 Mb.

The code im using is below:

total_bytes = _root.getBytesTotal();
loaded_bytes = _root.getBytesLoaded();
remaining_bytes = total_bytes-loaded_bytes;
percent_done = int((loaded_bytes/total_bytes)*100);
if (percent_done == 100) {
loader_text.text = “Loading Player: " + percent_done +”%"

Frame 2 sends the timeline back to frame 1.