# Loader does'n work on browser

**URL:** <https://forum.kirupa.com/t/loader-doesn-work-on-browser/181380>\
**Category:** Uncategorized\
**Created:** [March 8, 2006, 8:00pm UTC](https://forum.kirupa.com/t/loader-doesn-work-on-browser/181380 "2006-03-08T20:00:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aBnest](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/abnest/32/2177_2.png) [@aBnest](https://forum.kirupa.com/u/aBnest)\
**Post date:** [March 8, 2006, 8:00pm UTC](https://forum.kirupa.com/t/loader-doesn-work-on-browser/181380/1 "2006-03-08T20:00:06Z")

</div>

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

```auto

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";
        }
            
    };
};

```
