# \[AS2\] Scope issues when extending mc class

**URL:** https://forum.kirupa.com/t/as2-scope-issues-when-extending-mc-class/79948
**Category:** flash
**Created:** [February 18, 2005, 5:22am UTC](https://forum.kirupa.com/t/as2-scope-issues-when-extending-mc-class/79948 "2005-02-18T05:22:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![SmurfMX](https://avatars.discourse-cdn.com/v4/letter/s/b9e5f3/32.png) [@SmurfMX](https://forum.kirupa.com/u/SmurfMX)
#### Post date: [February 18, 2005, 5:22am UTC](https://forum.kirupa.com/t/as2-scope-issues-when-extending-mc-class/79948/1 "2005-02-18T05:22:23Z")

</div>

I have this extremely odd problem. OK to start off I have an MC in my library with the linkage identifier “Interface” and the AS2 class “Player” (both without “” of course). Now, my player class looks like this.

```auto

class Player extends MovieClip{
    //public

    //private

    //static

    //---Constructor---
    public function Player(Void){
        init();
    }

    private function init(Void):Void{
        trace("Initalized!");
        setMuteHandler();
    }

    private function setMuteHandler(Void):Void{
        trace(this.muted);
    }
}

```

[size=1]**Note:  
Muted is a mc within my Interface clip.**[/size]

Now if you look at the setMuteHandler method the trace doesn’t return the muted mc but it thinks I’m trying to access a property of that mc, anyone know how I can aliveate this issue. Using code like this works.

```auto

trace(this['muted']);

```

But that’s far too cumbersome and I’d like to just be able to do.

```auto

this.muted;

```
