# Am i missing something?

**URL:** <https://forum.kirupa.com/t/am-i-missing-something/77625>\
**Category:** flash\
**Created:** [January 28, 2005, 5:57pm UTC](https://forum.kirupa.com/t/am-i-missing-something/77625 "2005-01-28T17:57:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iloveitaly](https://avatars.discourse-cdn.com/v4/letter/i/7ea924/32.png) [@iloveitaly](https://forum.kirupa.com/u/iloveitaly)\
**Post date:** [January 28, 2005, 5:57pm UTC](https://forum.kirupa.com/t/am-i-missing-something/77625/1 "2005-01-28T17:57:30Z")

</div>

[AS]  
class test extends MovieClip {  
private var butnPath;

function test() {  
butnPath = this.cool\_button  
}  
}  
[/AS]  
I assign this custom class to a MC containing a button with a instance name ‘cool\_button’.  
This code gives a me a compile error of ‘variable cool\_button not defined’, what i am trying to do is reference something that is in the MC itself. The only solution i have found is to name the var the same as the instance name you are trying to reference.
