Loader does'n work on browser

my loader works perfecty in flash test scene …but when i test i t on browser the loader does not work anymore.

the load_bar id on the main timeline

This is my code: addapted from the kirupa v3 gallery



MovieClip.prototype.loadPic = function(pic, id) {
    info.text = "";
    this._alpha = 0;
    this.loadMovie(pic);
    temp = this._parent.createEmptyMovieClip("temp2", 998);
    temp.onEnterFrame = function() {
        var t = container.getBytesTotal(), l = container.getBytesLoaded();
        load_bar._visible = 1;
        per = Math.round((l/t)*100);
        if (Math.round(l/t) == 1 && container._width != 0 && container._height != 0) {
            var w = container._width+spacing, h = container._height+spacing;
            border.resizeMe(w, h, id);
            load_bar._visible = 0;
            delete this.onEnterFrame;
        }
        else{
            load_bar._height = (l/t)*47;
            info.info.text = per+" % loaded";
        }
            
    };
};