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

**URL:** https://forum.kirupa.com/t/xml-as-xml-problem-send-wont-work/112798
**Category:** Uncategorized
**Created:** [June 11, 2004, 1:21pm UTC](https://forum.kirupa.com/t/xml-as-xml-problem-send-wont-work/112798 "2004-06-11T13:21:27Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![grappaFruit](https://avatars.discourse-cdn.com/v4/letter/g/43a26b/32.png) [@grappaFruit](https://forum.kirupa.com/u/grappaFruit)
#### Post date: [June 11, 2004, 1:21pm UTC](https://forum.kirupa.com/t/xml-as-xml-problem-send-wont-work/112798/1 "2004-06-11T13:21:27Z")

</div>

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.

```auto

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](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…)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 11, 2004, 8:59pm UTC](https://forum.kirupa.com/t/xml-as-xml-problem-send-wont-work/112798/2 "2004-06-11T20:59:23Z")

</div>

Yes.Flash alone can’t write files to a server;  
all it can do so far is save shared objects to the users comp’, containing any data type you want. You’ll have to use ASP/CF/PHP… to write the xml to file.
