# Basic OOP question

**URL:** <https://forum.kirupa.com/t/basic-oop-question/279600>\
**Category:** flash\
**Created:** [January 16, 2009, 1:28pm UTC](https://forum.kirupa.com/t/basic-oop-question/279600 "2009-01-16T13:28:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeancnicolas](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@jeancnicolas](https://forum.kirupa.com/u/jeancnicolas)\
**Post date:** [January 16, 2009, 1:28pm UTC](https://forum.kirupa.com/t/basic-oop-question/279600/1 "2009-01-16T13:28:13Z")

</div>

In the Library, I Have an mc named ‘block’ which is being attached to the Stage. Inside this MC, is another MC called ‘inside\_mc’. ‘block’ has a alphaClass.as associated with it.  
My class code looks as follows

```auto
class ButtonClass extends MovieClip {
    public function ButtonClass() {
        this.onRollOver = this.over;
    }
    private function over() {
        this.inside_mc._alpha = 50;
    }
}

```

When the movie publishes, flash says that the MC has no property with the name ‘inside\_mc’, thus does not work.  
Can someone point out where I am going wrong please? Because, really… The MC does have the property ‘inside\_mc’!  
Thanks …/:cowbell:
