# Extending the MovieClip class

**URL:** https://forum.kirupa.com/t/extending-the-movieclip-class/256204
**Category:** flash
**Created:** [March 31, 2008, 9:00pm UTC](https://forum.kirupa.com/t/extending-the-movieclip-class/256204 "2008-03-31T21:00:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![MoOMoOMiLK](https://avatars.discourse-cdn.com/v4/letter/m/919ad9/32.png) [@MoOMoOMiLK](https://forum.kirupa.com/u/MoOMoOMiLK)
#### Post date: [March 31, 2008, 9:00pm UTC](https://forum.kirupa.com/t/extending-the-movieclip-class/256204/1 "2008-03-31T21:00:38Z")

</div>

Hi guys,

I am wondering how I can add additional methods to the MovieClip class so that every MovieClip I create will have access to those methods automatically. What I mean is doing something like declaring a function “MovieClip.prototype.functionName = function()…” in ActionScript 2.0, but doing so in ActionScript 3.0 instead.

I understand that I can create a new class that extends the MovieClip class by doing “public class ClassName extends MovieClip” and write my own methods under it, but then I will need all my MovieClip symbols to implement this new class I created in order to access the methods I made. How can I achieve the effect in which I will be able to access my own methods by just having the symbol implement the MovieClip class instead of implementing a new class which extends the MovieClip class?
