XML in Flash

hello everyone. Thanks in advance for your help!

I’m trying to get XML working on my FLASH project here. I have to following actionscript working on a plain single layer flash file (AS 2.0).

var myXML:XML = new XML();
myXML.onLoad = function(success) {
    if(success) {
        semTXT = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
        semBox.text = semTXT;

and I have the following XML format:

        <region>Place 1</region>
        <sem>Person 1</sem>
        <location>Place 2</location>
        <se>Person 2</se>

However, I’m getting a message “undefined” when I test the file. Can anyone let me know if I’m doing something wrong? The actionscript is on the