# Accessing variable of child

**URL:** <https://forum.kirupa.com/t/accessing-variable-of-child/301708>\
**Category:** Uncategorized\
**Created:** [December 14, 2009, 3:48pm UTC](https://forum.kirupa.com/t/accessing-variable-of-child/301708 "2009-12-14T15:48:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DENNZ](https://avatars.discourse-cdn.com/v4/letter/d/58956e/32.png) [@DENNZ](https://forum.kirupa.com/u/DENNZ)\
**Post date:** [December 14, 2009, 3:48pm UTC](https://forum.kirupa.com/t/accessing-variable-of-child/301708/1 "2009-12-14T15:48:26Z")

</div>

Hi,

i would like to access a variable from a child in as3.

on main time line i have:

```php

var xx:Number
trace(mc.xx)

```

in my child called mc i have:

```php

var xx:Number
xx=1

```

the trace output is NaN.

how do i read xx fom inside mc?
