Hello Kerry and others,
> Alexander Farber wrote:
> http://stackoverflow.com/questions/3709172/custom-cellrenderer-for-a-list-with-xml-data
thank you, I've traced the set data in debugger and its d argument
is really an Object, not XML. Flash seemingly will go through all the
1st level children of dataProvider's XML and create an Object for
each of them with attributes as properties (and also with sub-children
as properties, but they will be empty strings).
public function set data(d:Object):void {
_data = d;
id = d.id; // works ok now, but d.user is a ""
}
My new problem is however, that I need to access the sub-children
"user" for each "game", but the d.user is just an empty string "" :-(
<game id="0"/>
<game id="9012">
<user id="OK10218913103" name="Yervand"/>
</game>
<game id="9013">
<user id="OK305894249541" name="chabo"/>
<user id="OK151358069597" name="Elena"/>
</game>
<game id="9007">
<user id="DE7062" name="lexo"/>
</game>
I.e. I don't know how to get ahold of user id's and name's above to
represent them in my customly rendered List. Any suggestions please?
Regards
Alex
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders