# Auto refresh xml data in flash

**URL:** <https://forum.kirupa.com/t/auto-refresh-xml-data-in-flash/218804>\
**Category:** flash\
**Created:** [March 11, 2007, 9:17am UTC](https://forum.kirupa.com/t/auto-refresh-xml-data-in-flash/218804 "2007-03-11T09:17:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LeventKA](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/leventka/32/2160_2.png) [@LeventKA](https://forum.kirupa.com/u/LeventKA)\
**Post date:** [March 11, 2007, 9:17am UTC](https://forum.kirupa.com/t/auto-refresh-xml-data-in-flash/218804/1 "2007-03-11T09:17:20Z")

</div>

```auto
function LoadXML(loaded) {
     if (loaded) {
         _root.kul_ad.text = this.firstChild.firstChild.childNodes[0].nodeValue;
         _root.kul_kalyon = this.firstChild.childNodes[1].firstChild.nodeValue;
         _root.kul_kadirga.text = this.firstChild.childNodes[2].firstChild.nodeValue;
         _root.kul_puan.text = this.firstChild.childNodes[3].firstChild.nodeValue;
     }
 }
 xmlData = new XML();
 xmlData.ignoreWhite = true;
 xmlData.onLoad = loadXML;
 xmlData.load("xml.php");

```

I have swf get values from a xml.  
I want:  
when I send a change to xml, flash will detect that automatically

```auto

myLoadInteval = setInterval(LoadFile, 2000);
function LoadFile() {
    xmlData.load("xml.php");
}

```

didn’t work
