# I am having some troubles with flash and xml. Sry for the dual post, but need help

**URL:** https://forum.kirupa.com/t/i-am-having-some-troubles-with-flash-and-xml-sry-for-the-dual-post-but-need-help/53718
**Category:** flash
**Created:** [June 7, 2004, 9:24am UTC](https://forum.kirupa.com/t/i-am-having-some-troubles-with-flash-and-xml-sry-for-the-dual-post-but-need-help/53718 "2004-06-07T09:24:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![trevorsaint](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/trevorsaint/32/268_2.png) [@trevorsaint](https://forum.kirupa.com/u/trevorsaint)
#### Post date: [June 7, 2004, 9:24am UTC](https://forum.kirupa.com/t/i-am-having-some-troubles-with-flash-and-xml-sry-for-the-dual-post-but-need-help/53718/1 "2004-06-07T09:24:18Z")

</div>

I am having some troubles with flash and xml.

Please, can anyone help me. I need an asp script to deal with my edit of an xml file, I have it setup in the flash part of things, but not the important asp part of the process. Can anyone whatsoever help me out with this???

Trev

Come on someone must know ???

ActionScript:

/\*\*\*\*\*\*\*\*\*\*\*\* FUNCTION THAT EDITS AN XML NODE (called from Save Button) \*\*\*\*\*\*\*\*\*\*\*\*/  
\_global.editXML = function () {

// Gets the new text from the input box  
newText = \_root.textTemplate.main.myTextField.text;

// Creates a new node right before the old one and inserts the new text  
xmlFile.firstChild.childNodes[pathToArea].insertBefore(xmlFile.createElement(sectorNumber), xmlFile.firstChild.childNodes[pathToArea].childNodes[pathToSector]);  
xmlFile.firstChild.childNodes[pathToArea].childNodes[pathToSector].appendChild( xmlFile.createTextNode(newText) );

// Removes the old sector which is right in front (1 spot in front) of the new one  
oldSector = Number(pathToSector) + 1;  
xmlFile.firstChild.childNodes[pathToArea].childNodes[oldSector].removeNode()

xmlFile.send(“file.asp”);

}
