# Exending movieclip class with your own movieclip and how to create children in it

**URL:** <https://forum.kirupa.com/t/exending-movieclip-class-with-your-own-movieclip-and-how-to-create-children-in-it/235385>\
**Category:** Uncategorized\
**Created:** [August 10, 2007, 4:03pm UTC](https://forum.kirupa.com/t/exending-movieclip-class-with-your-own-movieclip-and-how-to-create-children-in-it/235385 "2007-08-10T16:03:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sangackt](https://avatars.discourse-cdn.com/v4/letter/s/8e7dd6/32.png) [@sangackt](https://forum.kirupa.com/u/sangackt)\
**Post date:** [August 10, 2007, 4:03pm UTC](https://forum.kirupa.com/t/exending-movieclip-class-with-your-own-movieclip-and-how-to-create-children-in-it/235385/1 "2007-08-10T16:03:46Z")

</div>

I was writing actionscript for a custom movieclip class I made.  
Created my movieclip in flash and linked it as Dude class.

One question: Is it possible to override the constructor? I tried to do it but flash gives me an error “duplicate function definition”

Another question: How do I create a displayobject in this movieclip? I tried to do something like this inside the actionscript for the Dude movieclip.

```auto

var mytext:TextField = new TextField();
// code to change textfield's properties
addChild( mytext );

```

But when I created an instance of Dude on the stage the textfield isn’t showing.
