Access parent variable/function?

I’m stumped. I add clips from the library from my main Document Class. I can trace the parent from any of the clips attached classes.

But I can’t access the functions are variables inside the Document class. How do I do this?

if I want to access mainVariable from the Document class, how do I target that variable from the added clip?

trace(parent.mainVariable) gives me an error. Please help?