# Access Document Class from within Movieclip

**URL:** https://forum.kirupa.com/t/access-document-class-from-within-movieclip/280725
**Category:** flash
**Created:** [January 30, 2009, 7:13pm UTC](https://forum.kirupa.com/t/access-document-class-from-within-movieclip/280725 "2009-01-30T19:13:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ridd412](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@ridd412](https://forum.kirupa.com/u/ridd412)
#### Post date: [January 30, 2009, 7:13pm UTC](https://forum.kirupa.com/t/access-document-class-from-within-movieclip/280725/1 "2009-01-30T19:13:04Z")

</div>

Hey everyone,

I was wondering if it was possible to access the document class from within a movieclip.

I am creating a slideshow type project, and I’m using a document class to switch between the frames using the arrow keys. However, in one of the “slideshow screen” movieclips, I want to have it stop, and then play another part when the arrow key is pressed again.

I tried to access my nextScreenToPlay method within the document class, but whenever I try to do it within a movie clip, I get this error: **Call to a possibly undefined method nextScreenToPlay through a reference with static type class**.

If I do a trace(Main), within a movieclip, it shows the class. :S

I’m confused.
