# AS2.0 Super constructor

**URL:** <https://forum.kirupa.com/t/as2-0-super-constructor/178645>\
**Category:** flash\
**Created:** [February 13, 2006, 1:35am UTC](https://forum.kirupa.com/t/as2-0-super-constructor/178645 "2006-02-13T01:35:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwopitz](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jwopitz/32/1556_2.png) [@jwopitz](https://forum.kirupa.com/u/jwopitz)\
**Post date:** [February 13, 2006, 1:35am UTC](https://forum.kirupa.com/t/as2-0-super-constructor/178645/1 "2006-02-13T01:35:18Z")

</div>

Hi. I am trying to build a class that inherits from the MovieClip class. Basically I am having issues in the constructor. Since MC’s are unique in that they can only be created via createEmptyMovieClip or attachMovieClip, I am at a loss as to how you instantiate the inheriting class in the .fla? I figured if I just left the constructor out of the new class and do the following it would work but is doesn’t:  
[AS]  
var hex:Hexagon = new Hexagon ();  
[/AS]  
How do I inherit from the MovieClip class and still instatiate the class using the above type actionScript?

BTW: I have seen alot of information about inheritance and AS1.0 (which I have little understanding of). I am trying to stick to OOP practices and AS2.0. I searched for things like super & constructor to no avail.
