# Problem: repeated "getBytesTotal"-check (on an XML-file) sticks?

**URL:** https://forum.kirupa.com/t/problem-repeated-getbytestotal-check-on-an-xml-file-sticks/172203
**Category:** flash
**Created:** [December 12, 2005, 2:09pm UTC](https://forum.kirupa.com/t/problem-repeated-getbytestotal-check-on-an-xml-file-sticks/172203 "2005-12-12T14:09:53Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![CEOofAEP](https://avatars.discourse-cdn.com/v4/letter/c/7cd45c/32.png) [@CEOofAEP](https://forum.kirupa.com/u/CEOofAEP)
#### Post date: [December 12, 2005, 2:09pm UTC](https://forum.kirupa.com/t/problem-repeated-getbytestotal-check-on-an-xml-file-sticks/172203/1 "2005-12-12T14:09:53Z")

</div>

Greetings.

I have a Problem:

[list]  
[_]a “setInterval”-triggered function reloads an external XML-file (about 1300 - 1900 Bytes) every 30 seconds.  
[_]the “onLoad” of the XML-handler of that file then checks the filesize with “this.getBytesTotal()”.  
[_]the Bytesize is compared to another value stored in a variable. At startup this is set to 0, then upon every onLoad (after the check), it’s overwritten with the new value.  
[_][color=Red]when I try this online, it gives me the same filesize every time, no matter what I put in that XML or how long I make it.[/color]  
[/list]This whole thing works easily with a different project that I used this on- and that project uses several onLoad-handlers for 6 or 7 XML files.

It works well when I try it locally. Both files are located in different folders on the server and I mapped that exact structure locally.

SWF\>\> \one wo hree\four\five\FILE.SWF  
XML\>\> \one\six\seven\FILE.XML

The SWF opens the XML with “…/…/…/…/six/seven/FILE.XML” and it works locally, as well as upon the first load (the data is displayed, no error message)… it just doesn’t do the refreshing.

Or rather- it does the refreshing (it loads the file / executes the “onLoad”) but the file that it retrieves seems to have the old filesize.

The other project where this example works uses the same folder-structure.

Does anyone know what might be the cause of the problem?

Thanks in advance 🙂
