# Weird referencing problem

**URL:** <https://forum.kirupa.com/t/weird-referencing-problem/236053>\
**Category:** flash\
**Created:** [August 16, 2007, 7:34pm UTC](https://forum.kirupa.com/t/weird-referencing-problem/236053 "2007-08-16T19:34:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jellystones](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jellystones/32/3999_2.png) [@jellystones](https://forum.kirupa.com/u/jellystones)\
**Post date:** [August 16, 2007, 7:34pm UTC](https://forum.kirupa.com/t/weird-referencing-problem/236053/1 "2007-08-16T19:34:19Z")

</div>

Has anyone ever had an issue with variables of type “movieClip” not correctly referencing their intended movie clip??

For example: in \_root I have a movieClip called “chart1”. When coding inside the main time frame (\_root), I will say x = chart1.\_x

and it will return “undefined” ONLY SOMETIMES.

However if I say \_root.chart1 it always works.

What could keywords can I use to describe this bug? Am I only one that has come across this?
