Hello
I am displaying the followinf XML in the output window using trace:
</profile>
<profile quote=""The EPT Prague was pretty amazing for me!"">
<xpos>3</xpos>
<ypos>-49</ypos>
<profilename>Nasr El Nasr</profilename>
<profilelocation>Berlin, Germany</profilelocation>
<headline><![CDATA[We meet up with Nathanael and asked him a few questions about his game...]]></headline>
<article><![CDATA[<font color="#9b1774">Firstly, tell us a little about yourself.</font><br/><p align="justify">My name is Nasr El Nasr. I am 23 years old and live in Berlin/Germany. I started playing poker a while ago and am doing this full time now. when I am not playing poker I like to just hang out with my friends, go to the movies or play some sports. I like to travel and to meet new people.</p><br/><br/><font color="#9b1774">How long have you been playing poker?</font><br/><p align="justify">I have been playing for about 2 and a half years.</p><br/><br/><font color="#9b1774">What do you do for a living?</font><br/><p align="justify">I Play High Stakes Poker.</p><br/><br/><font color="#9b1774">Tell us about your trip to the European Poker Tour.</font><br/><p align="justify">The EPT budapest didn’t go that well. I busted out quite early on day one but still had a nice time in Hungary. The EPT Prague was pretty amazing for me. (We were watching when Nasr's AA busted to a lucky Italian player) I finished 7th @ the main event which is my biggest success so far.</p><br/><br/><font color="#9b1774">What do you enjoy most about playing at Chilipoker?</font><br/><p align="justify">Many games to select from, great support I get along with, good bonus program.</p><br/><br/><font color="#9b1774">What is your perception of the game?</font><br/><p align="justify">I love this game. to me playing poker means competing with opponents on very high mind level. poker is a very complex and challenging game in which there'll always be room to improve. I met a lot of new friends all around the world through playing poker and I am really happy I found my way into the game.</p><br/><br/><font color="#9b1774">How much luck do you think there is in poker?</font><br/><p align="justify">Not enough to talk about it...</p><br/><br/><font color="#9b1774">Tell us about your best poker cash in.</font><br/><p align="justify">It was @ the ept Prague 2008. I played a good tournament and finished in 7th place at the end.</p><br/><br/><font color="#9b1774">What´s is your favorite poker game hand?</font><br/><p align="justify">I still prefer AA :S don’t know what the others think</p><br/><br/><font color="#9b1774">What are your plans for 2009?</font><br/><p align="justify">I want to play more big live events and hopefully make some more good finishes.</p><br/><br/><br/>]]></article>
<results><![CDATA[6th Aussie Millions 09 <b>$5,033</b><br>7th EPT Prague 08 <b>$71,800</b> <br>]]></results>
<thumb>data/thumb_nasr_el_nasr.jpg</thumb>
<image>data/nasr_el_nasr.jpg</image>
<flag>data/de.gif</flag>
</profile>
Code is :
function testClick(evt:Event):void {
trace("evt.target.id" + evt.target.id);
var playersXML=xml..event[evt.target.id].players.player;
for (var i=0; i<playersXML.length(); i++) {
var playerName=xml..event[evt.target.id].players.player*.*;
evt.target.parent.parent.parent.tabHolder.getChildByName(i).profilename.text=playerName;
trace(xml..profile.(profilename == playerName));
}
trace("----------");
}
The code works fine, my only problem is that I need to section the displayed XML and and split is accordingly:
evt.target.parent.parent.parent.tabHolder.getChildByName(i).profilelocation.text = <profilelocation>Berlin, Germany</profilelocation>
evt.target.parent.parent.parent.tabHolder.getChildByName(i).headline.text = <headline><![CDATA[We meet up with Nathanael and asked him a few questions about his game…]]></headline>
etc…
Does anyone have any suggestions for this?
Thanks
Ian