[FMX2] preloader and visibility

Hello,

I have index.swf which has the following script on frame one:
[AS]
_root.createEmptyMovieClip(“container”, 1000);
_root.container._visible = 0;
_root.createEmptyMovieClip(“preloader”, 1001);
_root.container.loadMovie(“content.swf”);
[/AS]
then on frame two:
[AS]
preloader.onEnterFrame = function() {
t = _root.container.getBytesTotal();
trace(“t=”+t)
l = _root.container.getBytesLoaded();
trace(“l=”+l)
p = l/t;
trace (“p=”+p)
loader._width = p*100;
if (l>=t) {
_root.container._visible = 1;
trace(“done”)
delete this.onEnterFrame;
}
};
stop();
[/AS]
It works like it should, minus the fact that at about 35% (60k out of 153k) it shows the content.swf. This doesn’t make any sense because container (the MC holding content.swf) is set to to be invisible until l = t (loaded = total). I’ve been tweaking this for hours and can’t for the life of me figure out why its showing the container prematurly and why its ignoring my _visible tags