# Read Main var from Child SWF

**URL:** <https://forum.kirupa.com/t/read-main-var-from-child-swf/321054>\
**Category:** flash\
**Created:** [April 8, 2011, 10:13pm UTC](https://forum.kirupa.com/t/read-main-var-from-child-swf/321054 "2011-04-08T22:13:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![daush](https://avatars.discourse-cdn.com/v4/letter/d/f05b48/32.png) [@daush](https://forum.kirupa.com/u/daush)\
**Post date:** [April 8, 2011, 10:13pm UTC](https://forum.kirupa.com/t/read-main-var-from-child-swf/321054/1 "2011-04-08T22:13:48Z")

</div>

Hi guyz.

i have main.swf with var car:String = “my car”;

then i addchild a new swf; child.swf

inside child, how can i trace my “car” var?

MovieClip(root).car give me Undefined ☹

help!
