Traversing the object hierarchy

—[ RESOLVED ]—

I’ve been struggling with this problem for the past few hours, for some reason I can’t wrap my head around it. I’m confused about how an object references it’s parent, like

Document Class


addChild(objParent);
objParent.addChild(objChild);

objChild Class

// Should reference objParent, but is null instead.
MovieClip(this.parent).function_or_variable();

From what I’ve read, it seems like this should work. What am I doing wrong?

-*super

*–EDIT–
I now realize that this method works with constant variables, like x or alpha. However, it does not with custom variables or functions, even ones declared as public static.