Re: [Flashcoders] RE: LoadVars to XML object

2006-10-18 Thread Chip Moeser
Thanks Jack! On Oct 17, 2006, at 6:28 PM, Jack Doyle wrote: This may be overkill, but feel free to use the XMLParser class I wrote which handles a bunch of stuff related to getting XML into and out of Flash without all the headaches. For example, you can: - Throw any object at the

RE: [Flashcoders] RE: LoadVars to XML object

2006-10-18 Thread Steven Sacks | BLITZ
// XML2AS - DO NOT AUTO FORMAT! _global.XML2AS = function(n, r) { var a, d, k; if (r[k=n.nodeName] == null) r = ((a=r[k]=[{}]))[d=0]; else r = (a=r[k])[d=r[k].push({})-1]; if (n.hasChildNodes()) { if ((k=n.firstChild.nodeType) == 1) { r.attributes =