# AS2 OOP - extending movie clips

**URL:** <https://forum.kirupa.com/t/as2-oop-extending-movie-clips/235962>\
**Category:** flash\
**Created:** [August 16, 2007, 3:08am UTC](https://forum.kirupa.com/t/as2-oop-extending-movie-clips/235962 "2007-08-16T03:08:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthewjumps](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@matthewjumps](https://forum.kirupa.com/u/matthewjumps)\
**Post date:** [August 16, 2007, 3:08am UTC](https://forum.kirupa.com/t/as2-oop-extending-movie-clips/235962/1 "2007-08-16T03:08:45Z")

</div>

After a bit of research on the topic, it seems the only way i can create an instance of a class that extends MovieClip is attachMovie or by actually placing the movie clip with the associated class on the stage.

what i want to know is - does anyone know another way to do it?

is there possibly a way to extend the MovieClip class in such a way that i can create an instance using the usual

var myClassObject:myClass = new myClass(possibly the x and y coordinates);

so that it places a movie clip on the stage, and also allows me to use properties like myClassObject.\_x and methods like myClassObject.loadMovie straight up seeing as myClassObject extends the MovieClip class?

anyone AS2 gurus know if this is possible? :alien2:
