# Text effect from external xml then reload

**URL:** https://forum.kirupa.com/t/text-effect-from-external-xml-then-reload/245063
**Category:** Uncategorized
**Created:** [November 26, 2007, 1:35am UTC](https://forum.kirupa.com/t/text-effect-from-external-xml-then-reload/245063 "2007-11-26T01:35:14Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dynamitemedia](https://avatars.discourse-cdn.com/v4/letter/d/bc79bd/32.png) [@dynamitemedia](https://forum.kirupa.com/u/dynamitemedia)
#### Post date: [November 26, 2007, 1:35am UTC](https://forum.kirupa.com/t/text-effect-from-external-xml-then-reload/245063/1 "2007-11-26T01:35:14Z")

</div>

hello i been reading here a lot and finally joined and posted!

i am loading a external xml with this code…

```auto
function loadXML(loaded) {
    if (loaded) {

_root.name = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
_root.message = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
        name_txt.text = _root.name;
        comment_txt.text = _root.message;
_root.name = this.firstChild.childNodes[1].childNodes[0].firstChild.nodeValue;
_root.message = this.firstChild.childNodes[1].childNodes[1].firstChild.nodeValue;
        name_txt2.text = _root.name;
        comment_txt2.text = _root.message;    

    } else {
        content = "file not loaded!";
    }
}

xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("test.php");

```

works great.

but i want to do 2 things more to it and i have searched all over and all the sniplets i try just wont work, even the new sticker here on this site will work alone but not within my .fla

1. i want this to load as a typewriter effect AND as the fade effect in the new sticker (different section i use this code in 2 places) using this code i have above
2. i want to be able to set the timer as in the news ticker as well.

so i want it to do the following:

load the XML with the selected effect, then stop when finished, pause for 15 seconds and reload the XML again.

by this time the test.php will be updated as well as i will set that to refresh every 10 seconds with new data from my MYSQL

the php and mysql are working just cant reload the flash and XML!

thanks i hope someone can help out
