I’ve created an amount of MC based on my XMLlist, and each assign with an attribute/ID stated in the XML. I’m now trying to trace back the parent of the assigned MC properties, how could I do that?
[COLOR=#000080]<MEMBER NAME=[COLOR=#0000ff]"Todd"[/COLOR] ID=[COLOR=#0000ff]"001"[/COLOR]>[/COLOR]
[COLOR=#000080]<MEMBER NAME=[COLOR=#0000ff]"Popia"[/COLOR] ID=[COLOR=#0000ff]"003"[/COLOR]>[/COLOR]
[COLOR=#000080]</MEMBER>[/COLOR]
[COLOR=#000080]<MEMBER NAME=[COLOR=#0000ff]"Popia2"[/COLOR] ID=[COLOR=#0000ff]"004"[/COLOR]>[/COLOR]
[COLOR=#000080]<MEMBER NAME=[COLOR=#0000ff]"Awesome"[/COLOR] ID=[COLOR=#0000ff]"005"[/COLOR]>[/COLOR]
[COLOR=#000080]</MEMBER>[/COLOR]
[COLOR=#000080]</MEMBER>[/COLOR]
[COLOR=#000080]</MEMBER>[/COLOR]
private function members();:void {
xmlList=myXML.children();
var trunksX=trunks.x;
var trunksY=trunks.y;
for each (myXML in xmlList) {
createCircles();
addChild(circles)
circles.x= (Math.floor(Math.random()*100)-50);
circles.y= (Math.floor(Math.random()*100));
circles.name=myXML.attribute("ID");
members();
}
}
private function clickTarget(event:MouseEvent):void {
//trace(event.target.name);
//trace(event.target.parent().attribute("ID"));
//trying to trace previous assgined att MC position
}