# Hi if someone could help me with SendandLoad xml please read this

**URL:** <https://forum.kirupa.com/t/hi-if-someone-could-help-me-with-sendandload-xml-please-read-this/263012>\
**Category:** flash\
**Created:** [June 11, 2008, 8:53pm UTC](https://forum.kirupa.com/t/hi-if-someone-could-help-me-with-sendandload-xml-please-read-this/263012 "2008-06-11T20:53:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nosh247](https://avatars.discourse-cdn.com/v4/letter/n/9dc877/32.png) [@nosh247](https://forum.kirupa.com/u/nosh247)\
**Post date:** [June 11, 2008, 8:53pm UTC](https://forum.kirupa.com/t/hi-if-someone-could-help-me-with-sendandload-xml-please-read-this/263012/1 "2008-06-11T20:53:11Z")

</div>

Hi, all, i have being trying to figure out this a whole afternoon trying everything i could before i wrote it here. If any of you could help me with this i would appreciate it a lot…

So here is what im trying to do, i have a function that returns a value right but for some reason i cant get it to do it right. Im getting “undefined” value instead of the value it should read from the xml.

```auto
 
path = "http://www.grupolefevre.com/web/aidc/";
function checkMsg(whatval):String {
 var my_xml:XML = new XML();
 var myReply_xml:XML = new XML();
 myReply_xml.ignoreWhite = true;
 my_xml.ignoreWhite = true;
 myReply_xml.onLoad = function(success) {
  if (success) {
   theresult = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
   trace(theresult); 
  }
 };
 my_xml.sendAndLoad(path+"obicomments.php?idpersona="+whatval,myReply_xml);
 return theresult;
}
stop();
ys.text = checkMsg(24);

```

Thank you for your attention.

FCC
