# Document Class and Custom Class Communicating Question

**URL:** <https://forum.kirupa.com/t/document-class-and-custom-class-communicating-question/289651>\
**Category:** flash\
**Created:** [June 2, 2009, 11:35pm UTC](https://forum.kirupa.com/t/document-class-and-custom-class-communicating-question/289651 "2009-06-02T23:35:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mycaptainkite](https://avatars.discourse-cdn.com/v4/letter/m/7feea3/32.png) [@mycaptainkite](https://forum.kirupa.com/u/mycaptainkite)\
**Post date:** [June 2, 2009, 11:35pm UTC](https://forum.kirupa.com/t/document-class-and-custom-class-communicating-question/289651/1 "2009-06-02T23:35:36Z")

</div>

Okay, so the website I’m work on has the document class Main. Within this website I have a movieclip on the stage which I built a custom class for its functionality and I linked this movieclip to this class to make it work. There is no reference to this movieclip or class in Main.

Now, I need to communicate between these two classes. Can I do this? Can I dispatch an event from the custom class linked to the movieclip and have the document class listen for an event? How?
