Weird preloader and image loaded

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;



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