# Weird preloader and image loaded

**URL:** <https://forum.kirupa.com/t/weird-preloader-and-image-loaded/193635>\
**Category:** Uncategorized\
**Created:** [July 14, 2006, 5:49pm UTC](https://forum.kirupa.com/t/weird-preloader-and-image-loaded/193635 "2006-07-14T17:49:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pixeldude](https://avatars.discourse-cdn.com/v4/letter/p/57b2e6/32.png) [@pixeldude](https://forum.kirupa.com/u/pixeldude)\
**Post date:** [July 14, 2006, 5:49pm UTC](https://forum.kirupa.com/t/weird-preloader-and-image-loaded/193635/1 "2006-07-14T17:49:01Z")

</div>

Hi everyone…

just a quick question…why my preloader are not working as suppose to …because when I test locally it works great…and then when I publish it to real using the actuall path…it seems the preloader not shown up and the image not show up as well…

here’s are the as I’m using;

```auto

stop();

var getImagename:LoadVars = new LoadVars();

getImagename.onLoad = function(){
    loadtheImage(this.imgname);
}
getImagename.load("http://www.someactuallurl.com/getimage.php");

Bar._xscale = 0;
function loadtheImage(thestuff:String){
        createEmptyMovieClip("container",this.getNextHighestDepth());
        container.loadMovie("admin/img/"+thestuff);
        temp = createEmptyMovieClip("tmp", this.getNextHighestDepth());
        temp.onEnterFrame = function() {
                var t = container.getBytesTotal();
                var l = container.getBytesLoaded();
                var percent = Math.round((l/t)*100);
                trace(percent);
                Bar._xscale = percent;
                if (l == t && t>0) {
                        Bar._xscale = 0;
                        delete this.onEnterFrame;
                }
        };
}

```

Any help or shoot would be appreciated…

Thanks
