# Calling method on document class from another class

**URL:** <https://forum.kirupa.com/t/calling-method-on-document-class-from-another-class/311380>\
**Category:** flash\
**Created:** [July 5, 2010, 9:22am UTC](https://forum.kirupa.com/t/calling-method-on-document-class-from-another-class/311380 "2010-07-05T09:22:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![romit\_2034](https://avatars.discourse-cdn.com/v4/letter/r/ed655f/32.png) [@romit\_2034](https://forum.kirupa.com/u/romit_2034)\
**Post date:** [July 5, 2010, 9:22am UTC](https://forum.kirupa.com/t/calling-method-on-document-class-from-another-class/311380/1 "2010-07-05T09:22:39Z")

</div>

I have a rather silly question but as3’s document class always gets me confused.

I have a public method on my document class. I want to call this method from another class that is instantiated from within an object in the library of the flash file (the same one on whose document class I want to call a method).

I have tried everything and nothing seems to work. How do I do this?
