• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

XML.sendAndLoad()

Really, XML.sendAndLoad() is darn similar to LoadVars.sendAndLoad().

// XML.sendAndLoad()
// this is really just a load() operation,
// since the receiving PHP doesn't do anything with the XML
// document we send to it

var dummy_xml:XML = new XML();
var classes_xml:XML = new XML();

getClasses_btn.onRelease = function ()
{
    _root.createTextField("classes_txt",1, 100, 100, 300, 200);
    classes_txt.multiline = true;
    classes_txt.text = "loading...";
    dummy_xml.sendAndLoad("classes.php3",classes_xml);
}

classes_xml.onLoad = function() {
    classes_txt.text = classes_xml.firstChild;
}


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint