FIREFOX trouble

Hi guys, Im having trouble loading swf files into a moviclip in firefox.
Im using a preloaderMc with a onEnterFrame to show a loadbar
The thing is that in firefox it doesnt load the first time, the timeline just stops where Im loading the clip, I guess the variabels in the onEnterFrame comes up undefined or something.
The file does load but the onEnterFrame doesnt work properly (or rather the way I want it to) and the movie stops at this frame.

I guess the variabels are undefined because the movie hasnt started to load yet but since its in a onEnterFrame shouldnt it start to show progress eventually when the clip starts to laod and the preloader variabels arent undefined anymore?
It works fine in IE.
Any ideas what to do with this?


//main timeline
_root.container.loadMovie("someClip.swf");
stop();
 
//preloader mc
onClipEvent (load) {
 percent = 0;
}
onClipEvent (enterFrame) {
 loading = _root.container.getBytesLoaded();
 total = _root.container.getBytesTotal();
 percent -= (percent-((loading/total)*100))*.40;
 per = int(percent);
 loadBar._width = per+30;
 if (percent>99.5) {
  per = 100;
  _parent.play();
 }
}