# Undefined Variable HOW?

**URL:** <https://forum.kirupa.com/t/undefined-variable-how/241673>\
**Category:** Uncategorized\
**Created:** [October 16, 2007, 10:14pm UTC](https://forum.kirupa.com/t/undefined-variable-how/241673 "2007-10-16T22:14:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nvidia](https://avatars.discourse-cdn.com/v4/letter/n/bc8723/32.png) [@nvidia](https://forum.kirupa.com/u/nvidia)\
**Post date:** [October 16, 2007, 10:14pm UTC](https://forum.kirupa.com/t/undefined-variable-how/241673/1 "2007-10-16T22:14:18Z")

</div>

Hi i am creating a variable called **startAboutY** which is used to store the Y position of my movie clip **aboutContent\_mc**. To test that there are no errors i have placed this using trace statement **trace(“startAboutY variable” + startAboutY);** on my actions layer line 40. However, when testing it i keep getting error “variable undefined” . So when i look at where i have defined it in my code it looks perfectly fine. So i really do not understand why it says that?? The code before it ie startHomeY, is perfectly normal so i don’t get why my second variable is not working. Can somebody give me some assistance please.

Thanks
