# Creating custom class MovieClips

**URL:** <https://forum.kirupa.com/t/creating-custom-class-movieclips/50466>\
**Category:** Uncategorized\
**Created:** [May 3, 2004, 11:27am UTC](https://forum.kirupa.com/t/creating-custom-class-movieclips/50466 "2004-05-03T11:27:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bagullo](https://avatars.discourse-cdn.com/v4/letter/b/3e96dc/32.png) [@bagullo](https://forum.kirupa.com/u/bagullo)\
**Post date:** [May 3, 2004, 11:27am UTC](https://forum.kirupa.com/t/creating-custom-class-movieclips/50466/1 "2004-05-03T11:27:08Z")

</div>

Hi –  
I make classes that extend movie clip, but I want to dynamicaly create instances of this class, so I really create MovieClips, but with the added features of the class. How should I create this instances? I want ‘this’ to be the root of this new movieclip with added features— It’s really giving me a headache, so please help.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 4, 2004, 11:02am UTC](https://forum.kirupa.com/t/creating-custom-class-movieclips/50466/2 "2004-05-04T11:02:14Z")

</div>

are you sure what I said wouldn’t work for that? instead of creating an empty movieclip just make the library movieclip an empty movieclip. so instead of \_root.createEmptyMovieClip(“mcClip”, 0); you could just name an emptymovieclip in the library “mcClip” and give it a linkage ID to Object.registerClass() with. then instead of createEmptyMovieClip(); you could just attachMovie() the empty clip and it’ll be the same. but I guess poms is doing pretty much the same thing without the library crap… at least you have options 😃
