Preloader acts weird

hiya,

I made a preloader buit it is acting kinda weird :confused:

the wole content of the frame that it is in (even some static text) won’t show up, just when the movie is 100% loaded it pop ups very quickly and then then nothing happens. I’m convinced that the loader is way larger then the movie.

code of the loader (I couldn’t find any bugs, this worked fine for other preloaders…)
ActionScript Code:
[LEFT][COLOR=#0000FF]stop[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#0000FF]size[/COLOR] = [COLOR=#0000FF]getBytesTotal[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#0000FF]onEnterFrame[/COLOR] = [COLOR=#000000]function[/COLOR] COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000FF]loaded[/COLOR] = [COLOR=#0000FF]getBytesLoaded[/COLOR]COLOR=#000000[/COLOR];
procent = [COLOR=#0000FF]Math[/COLOR].[COLOR=#0000FF]round[/COLOR]COLOR=#000000[/COLOR];
percent = [COLOR=#0000FF]String[/COLOR]COLOR=#000000[/COLOR]+[COLOR=#FF0000]"%"[/COLOR];
bar.[COLOR=#000080]mask[/COLOR].[COLOR=#0000FF]_xscale[/COLOR] = procent;
[COLOR=#0000FF]if[/COLOR] [COLOR=#000000]([/COLOR][COLOR=#0000FF]size[/COLOR] == [COLOR=#0000FF]loaded[/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000FF]delete[/COLOR] [COLOR=#0000FF]onEnterFrame[/COLOR];
[COLOR=#0000FF]gotoAndStop[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#000000]}[/COLOR]
[COLOR=#000000]}[/COLOR];
[/LEFT]

should work fine

frame 2 is a small movie wich has the following on line on the last frame:
ActionScript Code:
[LEFT][COLOR=#0000FF]_root[/COLOR].[COLOR=#0000FF]gotoAndStop[/COLOR]COLOR=#000000[/COLOR];
[/LEFT]

the loader won’t show up, and the movie just dissapears when it’s done playing, without letting the main line jump to frame 2 :confused:

what the heck is wrong? o.O