# Writing a class to use with a MovieClip that's on stage

**URL:** <https://forum.kirupa.com/t/writing-a-class-to-use-with-a-movieclip-thats-on-stage/284067>\
**Category:** flash\
**Created:** [March 14, 2009, 3:42pm UTC](https://forum.kirupa.com/t/writing-a-class-to-use-with-a-movieclip-thats-on-stage/284067 "2009-03-14T15:42:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DrQuincy](https://avatars.discourse-cdn.com/v4/letter/d/90db22/32.png) [@DrQuincy](https://forum.kirupa.com/u/DrQuincy)\
**Post date:** [March 14, 2009, 3:42pm UTC](https://forum.kirupa.com/t/writing-a-class-to-use-with-a-movieclip-thats-on-stage/284067/1 "2009-03-14T15:42:07Z")

</div>

Sorry I’m new to this so forgive me if I explain it wrong.

If you put a moviecilp on the stage and then write a class that extends movieclip, is it possible to make it so that this references inside your class refer to the movieclip on stage.

E.g. this.x would refer to the x reference of the movieclip on stage.
