# Var into an external swf

**URL:** <https://forum.kirupa.com/t/var-into-an-external-swf/269496>\
**Category:** Uncategorized\
**Created:** [August 28, 2008, 11:31am UTC](https://forum.kirupa.com/t/var-into-an-external-swf/269496 "2008-08-28T11:31:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![coggia](https://avatars.discourse-cdn.com/v4/letter/c/8c91f0/32.png) [@coggia](https://forum.kirupa.com/u/coggia)\
**Post date:** [August 28, 2008, 11:31am UTC](https://forum.kirupa.com/t/var-into-an-external-swf/269496/1 "2008-08-28T11:31:34Z")

</div>

Hello,  
I declared a var into a MC like:  
var x1:int=5;

I load this Mc into anoteher MovieClip, and once it’s loaded, i try to call the var x1, and i found the var, but not it’s value :  
trace(mc.x1) // gives 0, not 5

So where’s the mistake, it can find that x1 is a int, (if i try to trace a non exist value, like x2 i get “undefined”) but it cannot find it’s value, how is it possible ?
