# How to call the movieclip of a class that has base class

**URL:** <https://forum.kirupa.com/t/how-to-call-the-movieclip-of-a-class-that-has-base-class/331401>\
**Category:** Uncategorized\
**Created:** [July 24, 2013, 6:47pm UTC](https://forum.kirupa.com/t/how-to-call-the-movieclip-of-a-class-that-has-base-class/331401 "2013-07-24T18:47:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bluetwentytwo](https://avatars.discourse-cdn.com/v4/letter/b/9f8e36/32.png) [@Bluetwentytwo](https://forum.kirupa.com/u/Bluetwentytwo)\
**Post date:** [July 24, 2013, 6:47pm UTC](https://forum.kirupa.com/t/how-to-call-the-movieclip-of-a-class-that-has-base-class/331401/1 "2013-07-24T18:47:24Z")

</div>

So here is my problem I’m having almost 2 days now. I searched from forums to forums and other sites and still no luck.  
Imagine a movieclip “green ball” in the stage which has its own class “GreenBall” and a base class of “Ball”.  
Therefore :

```auto
public class GreenBall extends Ball

```

There’s a function in “Ball” that needs MovieClip type to work. Ex:

```auto
this.hitTestObject(MovieClip)

```

Now my question is how to pass the “green ball” movieclip to the said function.  
Note: green ball doesn’t have instance name because I may create it both static (on stage) and dynamic (on AS3).  
It sounds easy for others. But I’m just a beginner in AS3 and programming. Thanks!
