# I don't realize what's wrong

**URL:** <https://forum.kirupa.com/t/i-dont-realize-whats-wrong/324773>\
**Category:** Uncategorized\
**Created:** [September 8, 2011, 5:40am UTC](https://forum.kirupa.com/t/i-dont-realize-whats-wrong/324773 "2011-09-08T05:40:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joecoolman](https://avatars.discourse-cdn.com/v4/letter/j/a88e4f/32.png) [@joecoolman](https://forum.kirupa.com/u/joecoolman)\
**Post date:** [September 8, 2011, 5:40am UTC](https://forum.kirupa.com/t/i-dont-realize-whats-wrong/324773/1 "2011-09-08T05:40:59Z")

</div>

main timeline frame 1 (it’s the only frame) code: trace(mc.b); there’s a clip instance called mc in frame 1.  
in timeline of mc and frame 1 (it’s the only frame) I wrote: var b=5;

output undefined

WTF !!! why??? I’ve correctly referenced the variable name with the clip name where this variable lives!  
In turn, if in main timeline I put: var a =7; and then in mc’s timeline I write trace(\_parent.a) or (\_root.a), the output is 7, that was expected.

What am I doing awesomely wrong???:jail:
