[Flashcoders] checking for properties AS3

2011-02-16 Thread Geografiek
Hi list, I posted this question a week ago on flash tiger, but never got an answer. So I try my luck here. I create an object and dynamically assign properties to it, values from xml-nodes. If an xml-node has child nodes the property assigned is an object and the values of the child nodes are

RE: [Flashcoders] checking for properties AS3

2011-02-16 Thread Cor
] checking for properties AS3 Hi list, I posted this question a week ago on flash tiger, but never got an answer. So I try my luck here. I create an object and dynamically assign properties to it, values from xml-nodes. If an xml-node has child nodes the property assigned is an object and the values

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 Geografiek
: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Geografiek Sent: woensdag 16 februari 2011 12:44 To: Flash Coders List Subject: [Flashcoders] checking for properties AS3 Hi list, I posted this question a week ago on flash tiger, but never

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: map id=gemRegioIndeling subTitle/subTitle classes class1 areaColor0xEBDBAA/areaColor keyText![CDATA[Noord-Nederland]]/keyText

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
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,