# AS2 - targeting movieclips

**URL:** <https://forum.kirupa.com/t/as2-targeting-movieclips/201817>\
**Category:** flash\
**Created:** [September 25, 2006, 1:57pm UTC](https://forum.kirupa.com/t/as2-targeting-movieclips/201817 "2006-09-25T13:57:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevinc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kevinc/32/1079_2.png) [@kevinc](https://forum.kirupa.com/u/kevinc)\
**Post date:** [September 25, 2006, 1:57pm UTC](https://forum.kirupa.com/t/as2-targeting-movieclips/201817/1 "2006-09-25T13:57:22Z")

</div>

Hi,

I’m having a small problem converting something to AS2. I hope someone he can point me in the right direction. Here’s my testcase.

I have a movie clip that’s associated with the Person class defined below. Inside the person class is a movieclip call arm that I have an animation in.

```auto
class Person extends MovieClip {
    
    public function wave() {
        arm.play();
    }    
}

```

The wave method should make the arm play but I get this compile error:  
\*\* There is no method with the name ‘arm’.  
arm.play();\*\*

How do I reference movieclips that are nside a class?

Thanks,
