Re: [Flashcoders] checking for properties AS3

2011-02-16 Thread Geografiek
Thanks so much Jens! Willem van den Goorbergh On 16 feb 2011, at 14:33, Jens Struwe wrote: > To recusively dump your complex object you might use: > > function traceProperties(object : Object, depth : uint = 0) : void { >for (var prop : String in object) { > trace (prefix(depth), prop,

Re: [Flashcoders] checking for properties AS3

2011-02-16 Thread Jens Struwe
To recusively dump your complex object you might use: function traceProperties(object : Object, depth : uint = 0) : void { for (var prop : String in object) { trace (prefix(depth), prop, object[prop]); if (object[prop] is Object) traceProperties(object[prop], depth + 1); }

Re: [Flashcoders] checking for properties AS3

2011-02-16 Thread Geografiek
Hi Jens, What I basically want is to transform the xml structure into an object structure. xml: 0xEBDBAA RA01 0xEBDBAA RA01

Re: [Flashcoders] checking for properties AS3

2011-02-16 Thread Geografiek
Hi Cor thanks, but that won't do. If I write a part out in a tree structure you'll see why: map map.classes map.classes,class1 map.classes,class1.areaColor map.classes,class1.value ... map.classes,class2 map.classes,class2.areaColo

Re: [Flashcoders] checking for properties AS3

2011-02-16 Thread Jens Struwe
Having an example XML could be pretty useful. And, actually, I don't understand the problem. What should be the output? Please hand over all necessary info required to be able to help you. Am 16.02.2011 12:43, schrieb Geografiek: Hi list, I posted this question a week ago on flash tiger, but

RE: [Flashcoders] checking for properties AS3

2011-02-16 Thread Cor
Hi Willem, Not sure, but what if you change this: for each (var childNode:XML in node.*) { into: for each (var childNode:XML in node..*) { Groeten, Cor van Dooren www.codobyte.com -- "There are only 10 types of people in th