Class Communication through the Document Class?

Hello all. I’ve been running into the problem of classes, their variables, and how they are able to interact.

Example:
I have a document class which instantiates two different classes, each with their own public variables. I can call these variables from the document class, but not from one class to the other.

Document class (generic test code)


var test01:MyClass = new MyClass();
trace(test01.myVar) // outputs: "This is your FIRST test string"

var test02:MyNewClass = new MyNewClass();
trace(test02.myDifferentVar) //outputs: "This is your SECOND test string"

Now say I’m in, “MyClass”


// here I'm trying to reference an instance of "MyNewClass()" that is in my document class
trace(test02.myDifferentVar) // outputs: undefined

I was under the impression that I would have access to anything in my document class from anywhere in any other class. Is there a way of referencing to the document class, as in its instance name or something?


// here I'm trying to reference an instance of "MyNewClass()" that is in my document class
trace(*DocumentClass*.test02.myDifferentVar) // outputs: undefined

This is turning out to be a big problem, but I hope there is an easy fix for it. Does anyone have any suggestions?
Thank you,
-EthanG