[Flashcoders] XML Node ID in Flash MX
I've been looking for a way to modify XML nodes in Flash MX via standard dot syntax. Tatsuo Kato's functions (http://tatsuokato.com/flash/XMLNodeEasyAccess.as) do a wonderful job of letting one read XML nodes with unique IDs via standard dot syntax, but there doesn't seem to be any way to modify those nodes. I.e: trace(myXML.nodeA.nodeB.firstChild.nodeValue); returns the expected value but myXML.nodeA.nodeB.firstChild.nodeValue = newNodeValue doesn't do anything at all. Anyone have a nice way of modifying XML nodes by standard dot syntax in Flash MX? Cheers, S. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] XML Node ID in Flash MX
There are some classes out there on the web you can use - I have one that I can send offlist to you if you want where the nodes in the syntax are the actual node names as they should be - not that firstChild crap. OR, wait until Actionscript 3.0 comes out - it has native dot syntax for XML built in (wooo hooo!). You can try it out right now with the Flex 2 beta on the adobe labs site. Jason Merrill | E-Learning Solutions | icfconsulting.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Sean Tamblyn Sent: Tuesday, March 14, 2006 4:41 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] XML Node ID in Flash MX I've been looking for a way to modify XML nodes in Flash MX via standard dot syntax. Tatsuo Kato's functions (http://tatsuokato.com/flash/XMLNodeEasyAccess.as) do a wonderful job of letting one read XML nodes with unique IDs via standard dot syntax, but there doesn't seem to be any way to modify those nodes. I.e: trace(myXML.nodeA.nodeB.firstChild.nodeValue); returns the expected value but myXML.nodeA.nodeB.firstChild.nodeValue = newNodeValue doesn't do anything at all. Anyone have a nice way of modifying XML nodes by standard dot syntax in Flash MX? Cheers, S. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] XML Node ID in Flash MX
You can use XML Shortcuts. See http://www.shockwave-india.com/blog/?archive=2005_07_10_archive.xml#112109983951386082 for more info Regards, Arul - Original Message - From: Sean Tamblyn [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Wednesday, March 15, 2006 5:41 AM I've been looking for a way to modify XML nodes in Flash MX via standard dot syntax. Tatsuo Kato's functions (http://tatsuokato.com/flash/XMLNodeEasyAccess.as) do a wonderful job of letting one read XML nodes with unique IDs via standard dot syntax, but there doesn't seem to be any way to modify those nodes. I.e: trace(myXML.nodeA.nodeB.firstChild.nodeValue); returns the expected value but myXML.nodeA.nodeB.firstChild.nodeValue = newNodeValue doesn't do anything at all. Anyone have a nice way of modifying XML nodes by standard dot syntax in Flash MX? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com