# Getting parent MC properties, named by XML attribute

**URL:** <https://forum.kirupa.com/t/getting-parent-mc-properties-named-by-xml-attribute/298293>\
**Category:** flash\
**Created:** [October 16, 2009, 3:33am UTC](https://forum.kirupa.com/t/getting-parent-mc-properties-named-by-xml-attribute/298293 "2009-10-16T03:33:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![youwh](https://avatars.discourse-cdn.com/v4/letter/y/82dd89/32.png) [@youwh](https://forum.kirupa.com/u/youwh)\
**Post date:** [October 16, 2009, 3:33am UTC](https://forum.kirupa.com/t/getting-parent-mc-properties-named-by-xml-attribute/298293/1 "2009-10-16T03:33:54Z")

</div>

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?

```auto
[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]

```

```auto
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
        }

```
