# Accessing properties of a component in an MC from the Root

**URL:** <https://forum.kirupa.com/t/accessing-properties-of-a-component-in-an-mc-from-the-root/231180>\
**Category:** flash\
**Created:** [July 2, 2007, 6:19pm UTC](https://forum.kirupa.com/t/accessing-properties-of-a-component-in-an-mc-from-the-root/231180 "2007-07-02T18:19:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![snailface](https://avatars.discourse-cdn.com/v4/letter/s/c0e974/32.png) [@snailface](https://forum.kirupa.com/u/snailface)\
**Post date:** [July 2, 2007, 6:19pm UTC](https://forum.kirupa.com/t/accessing-properties-of-a-component-in-an-mc-from-the-root/231180/1 "2007-07-02T18:19:28Z")

</div>

I have a button component “runCalc\_button” labeled “Caclulate” within a movie Clip “inputScreen\_mc”.

I’m trying to access the button’s properties from the Root, but I’m getting back “undefined.”

Here’s my code:

```auto

_root.attachMovie("inputScreen_mc", "inputScreen_mc", 200);
trace(_root.inputScreen_mc.runCalc_button);
trace(_root.inputScreen_mc.runCalc_button.label); 

```

the first “trace” returns “\_level0.inputScreen\_mc.runCalc\_button” as it should.  
the second returns “undefined.”

Anyone know why? Shouldn’t it return “Calculate.”
