# Loader scaleContent and preloader does NOT work online

**URL:** <https://forum.kirupa.com/t/loader-scalecontent-and-preloader-does-not-work-online/254858>\
**Category:** flash\
**Created:** [March 16, 2008, 1:05pm UTC](https://forum.kirupa.com/t/loader-scalecontent-and-preloader-does-not-work-online/254858 "2008-03-16T13:05:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![timoruII](https://avatars.discourse-cdn.com/v4/letter/t/b77776/32.png) [@timoruII](https://forum.kirupa.com/u/timoruII)\
**Post date:** [March 16, 2008, 1:05pm UTC](https://forum.kirupa.com/t/loader-scalecontent-and-preloader-does-not-work-online/254858/1 "2008-03-16T13:05:46Z")

</div>

Hello Everyone

i am truly a newbie in as2, i have test the script in local flash “Test Movie” everything was perfect, however when i try to put the files into my remote server, the getBytesLoaded()  
return to “0” and getBytesTotal() return to “-1” and the loader component scaleContent=true function was not working also,until i press “F5” refresh button, then everything back to normal, i dont know what is going wrong with my script, please anyone can help me?

i am using Flash CS3, as2.0 and ie7 and the dimension of my loader is 100x100 px

this is my script:

```auto

import mx.controls.Loader;
my_ldr.scaleContent = true;
 
this.onEnterFrame = function() {    
 
var total = _root.my_ldr.getBytesTotal();    
var loaded = _root.my_ldr.getBytesLoaded();    
var perc = Math.round((loaded/total)*100); 
 
CheckLoaded.text = loaded; 
CheckTotal.text = total;    
Checkperc.text = perc;
 
};
my_ldr.contentPath = http://www.flash-mx.com/images/image2.jpg;
 

```

this is my screen shoot ![](http://www.hg.sg/test/test.jpg) Thank You Very Much:p:  
timoru
