# Accessing document class variable

**URL:** <https://forum.kirupa.com/t/accessing-document-class-variable/233117>\
**Category:** Uncategorized\
**Created:** [July 20, 2007, 9:41am UTC](https://forum.kirupa.com/t/accessing-document-class-variable/233117 "2007-07-20T09:41:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xEnOn](https://avatars.discourse-cdn.com/v4/letter/x/85e7bf/32.png) [@xEnOn](https://forum.kirupa.com/u/xEnOn)\
**Post date:** [July 20, 2007, 9:41am UTC](https://forum.kirupa.com/t/accessing-document-class-variable/233117/1 "2007-07-20T09:41:57Z")

</div>

i am having a public class variable, isReady:Boolean, in my document class.  
how do i access this public variable from another class, which is a base class of a movieclip?

i don’t think i should create another new instance of my document class in the base class because this will create a new instance. i need to do a reference to the isReady variable in the document class. but i do not know how i should access it and how does the scope of the variables like.

thanks. 🙂
