Initializing a MovieClip

this is my code
stop()
container.loadMovie(_root.movie)
this.onEnterFrame=function(){
bar._xscale=Math.round(container.getBytesLoaded()/container.getBytesTotal()*1070)
spraycan._x=Math.round(container.getBytesLoaded()/container.getBytesTotal()*75)
if(container.getBytesLoaded()==container.getBytesTotal()){
delete this.onEnterFrame;
gotoAndPlay(“done”)
}
}
can some one help me should i initialize these clips first then the code or can i put the code and the preloader in the same frame
the reason why i’m posting is because my site works well on ie not on anyother browser its crazy thanks in advanced