[XML] AS - XML problem: .send() won't work

I’m totally new to XML in Actionscript - implementing and editing XML within Actionscript worked out swell - no problems so far…

but the some_xml.send() seems to become a true nightmare!

Soit, here’s an example:

I made a little “keep-in-touch” maillinglist, where visitors can leave their adress, click the “send” button - and let the administrator view the list on a secure page. XML suits fine for this job, i think.



on (press, keyPress "<Enter>") {

mailInput_xml = new XML();

mailInput_xml.ignoreWhite = true;

mailInput_xml.onLoad = function(success) {

		if (success) {

menuItem = this.firstChild.childNodes;

input = 'mail adress="' + _root.mailInput.text + '"';

this.firstChild.appendChild(mailInput_xml.createElement(input))

_root.mailInput.text = "THANK YOU!"

trace(this.toString())

}else{

_root.mailInput.text = "PLEASE TRY AGAIN"

}

};

mailInput_xml.load('Email.xml');

mailInput_xml.send('Email.xml');

}


trace() looked fine, the code puts the adress just where i want it to be, but the mailInput_xml.send(‘Email.xml’) seems to be dead and smelly.

You can view the site (in construction version) at http://www.fabula-rasa.be

P.l.e.a.s.e. help me out here, it’s propably just something stupid i forgot…

(And yes, I tested it online, to be sure…)