PDA

View Full Version : Adding to an XML document


BuffySummers
02-12-2004, 06:22 AM
Hi. I am supposed to create an interface that add nodes to an xml document. These nodes are supposed to have attributes to update the xml document (which is used for a thumbnail viewer.) I don't have a clue how to do this, where to start, if I can use a component or not. Can anyone lead me in the right direction for this? I am new to using XML in Flash.

momentus
02-12-2004, 03:30 PM
Flash by itself cannot actually write to an XML file. You can manipulate the XML in memory, throw that into a textfield and have the user manually copy/paste that into their XML file, but, depending on your situation, your client may find that undesirable.

However, you can look into some 3rd party apps - Screenweaver is one that springs to mind that will allow you to write files and I'm sure there are some others as well.

Additionally, if you're on IE you can look into this:
http://broadcast.artificialcolors.com/stories/2004/02/01/savingAFileFromFlashUsingIe.html which sounds promising.

And if you're on anything Flash pre-MX, you used to be able to make a projector and use FSCommand to write files, but not anymore. Read more here: http://www.macromedia.com/support/flash/ts/documents/write_file.htm

momentus