# Class instance - MC link problem

**URL:** https://forum.kirupa.com/t/class-instance-mc-link-problem/123134
**Category:** Uncategorized
**Created:** [September 20, 2004, 9:42pm UTC](https://forum.kirupa.com/t/class-instance-mc-link-problem/123134 "2004-09-20T21:42:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Deril](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/deril/32/63_2.png) [@Deril](https://forum.kirupa.com/u/Deril)
#### Post date: [September 20, 2004, 9:42pm UTC](https://forum.kirupa.com/t/class-instance-mc-link-problem/123134/1 "2004-09-20T21:42:15Z")

</div>

Hello,

I am exploring object orented programing in flash.  
and here is my first problem I ran into…

I want to link class instance with mc instance.

I want to create… lets say…

```auto
class player(){
 function go(){
 ...
 }
}

```

and then create MC …

lets say…

```auto
_root.player_mc

```

I want to link it so I could do

```auto
_root.player_mc.go();

```

… how to do it?

of course I can…

```auto
_root.player_mc.go = class_instance.go();

```

…  
or something… but it’s not the way I want to use classes in the flash…  
☹ I do not want to link all properties and all methods that way…  
If I will change my class… I will have to corect all such links…

can you sugest eny solution?

Thanks for your time.

GL flashing,  
Deril
