Please Help! XML SendAndLoad Problem!

I really need help - this project ive been working on for months is seriously jeopardised cause of this stupid thing.

ive got 2 XML objects


var XMLreciever = new XML();
XMLreciever.ignoreWhite = true;
//
var XMLsender = new XML();
XMLreciever.ignoreWhite = true;

then i try and sendAndLoad to a cfm


XMLreciever.onLoad = function(success:Boolean) {
    if (success) {
        _root.debug_txt.text = _root.XMLreciever;
        _root.createTextField("textinfofield", 222, 55, 55, 200, 50);
        _root.textinfofield.text = "SUCCESS ASSUMED - LETS HOPE";
        //
        _root.play();
    } else {
        _root.debug_txt.text = this;
        _root.createTextField("textinfofield", 222, 55, 55, 200, 50);
        _root.textinfofield.text = "FAILURE ASSUMED - DAMMIT";
    }
};
////
XMLsender.parseXML("<mapID>"+mapID+"</mapID>");
///
XMLsender.sendAndLoad("flash_map_xml.cfm", XMLreciever);
//

and i get the **success **message - but then if i try to use the xml vars i passed - everything is undefined!!! if i use a .cfm with the output in there, ie one that doesnt execute a query, it works fine - but if i use the proper one that calls the database - it doesnt work!

please any help about XML sendAndLoad with CFM i need!

OK i traced the XML.status when it loads in the if(success) section and it returns

-10 An end-tag was encountered without a matching start-tag.

but howcome the output of the cfm works fine when its hardcoded in a .cfm but the proper dynamic one doesnt?

  • and also if the cfm that the vars is in is renamed so its named incorrectly so the flash cant find it - it still says -10!!!

WHYAAAA MUMMY!

is it wrong to use XML sendAndLoad with Coldfusion? Im sure it can be done?!? I think …