# onLoadProgress not functioning on server

**URL:** <https://forum.kirupa.com/t/onloadprogress-not-functioning-on-server/250213>\
**Category:** flash\
**Created:** [January 27, 2008, 1:22am UTC](https://forum.kirupa.com/t/onloadprogress-not-functioning-on-server/250213 "2008-01-27T01:22:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![havanapar](https://avatars.discourse-cdn.com/v4/letter/h/9dc877/32.png) [@havanapar](https://forum.kirupa.com/u/havanapar)\
**Post date:** [January 27, 2008, 1:22am UTC](https://forum.kirupa.com/t/onloadprogress-not-functioning-on-server/250213/1 "2008-01-27T01:22:18Z")

</div>

Greetings,

I have an onLoadProgress function (AS2) which is working locally but not when uploaded to the server.

```auto
listener.onLoadProgress = function(target:MovieClip, bytesLoaded:Number, bytesTotal:Number):Void {
    var percentage:Number = Math.round( bytesLoaded/bytesTotal * 100);
     container[this.ttt].p_text.text = String(percentage)+" %";
    //trace(percentage);
}

```

the p\_text.text is being updated(as expected) when tested locally in simulate download mode, but when I test the same swf from the server, I am getting a blank instead of the percentage updated number, then when the code gets to listener.onLoadComplete, everything is going back to normal.

Any suggestion?

Thank you
