# Add new methods to MovieClip class?

**URL:** <https://forum.kirupa.com/t/add-new-methods-to-movieclip-class/312511>\
**Category:** flash\
**Created:** [August 5, 2010, 12:43pm UTC](https://forum.kirupa.com/t/add-new-methods-to-movieclip-class/312511 "2010-08-05T12:43:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RubenFlash](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@RubenFlash](https://forum.kirupa.com/u/RubenFlash)\
**Post date:** [August 5, 2010, 12:43pm UTC](https://forum.kirupa.com/t/add-new-methods-to-movieclip-class/312511/1 "2010-08-05T12:43:03Z")

</div>

Hi!

Is there any way to add methods to the existing MovieClip class so that later I can use them everytime I instantiate a MovieClip? Something like this:

```php

package {
    import flash.display.MovieClip;
    public class myClass extends MovieClip {
       public function myMethod() {
         //do stuff
       }
   }
}

```

Then, **without instantiating myClass** , I want to be able to call that method like this:

```php

var newMc:MovieClip = new MovieClip();
newMc.myMethod();

```

Is it possible?
