# Reference movieclip on the stage from a custom class of the document clas s

**URL:** <https://forum.kirupa.com/t/reference-movieclip-on-the-stage-from-a-custom-class-of-the-document-clas-s/301348>\
**Category:** flash\
**Created:** [December 8, 2009, 3:43am UTC](https://forum.kirupa.com/t/reference-movieclip-on-the-stage-from-a-custom-class-of-the-document-clas-s/301348 "2009-12-08T03:43:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vxd](https://avatars.discourse-cdn.com/v4/letter/v/848f3c/32.png) [@vxd](https://forum.kirupa.com/u/vxd)\
**Post date:** [December 8, 2009, 3:43am UTC](https://forum.kirupa.com/t/reference-movieclip-on-the-stage-from-a-custom-class-of-the-document-clas-s/301348/1 "2009-12-08T03:43:41Z")

</div>

Hi,

Is there a way I can reference a Movie clip I have on the main stage from a custom class of a document class?

in the custom class I have

```auto

parent.objectMC.x = 100

```

I get this error  
1119: Access of possibly undefined property objectMC through a reference with static type flash.display:DisplayObjectContainer.
