Steven,

It would be cool if you made a version of that that was mtasc compatible...

Jim Kremens


On 10/27/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:
Or you could use XML2AS.

// 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 = n.attributes;
           for (var i in k=n.childNodes) XML2AS(k[i], r);
       } else if (k == 3) {
           a[d] = new String(n.firstChild.nodeValue);
           a[d].attributes = n.attributes;
       }
   }else r.attributes = n.attributes;
}
_______________________________________________
[email protected]
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



--
Jim Kremens
_______________________________________________
[email protected]
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

Reply via email to