Traversing the object hierarchy


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


objChild Class

// Should reference objParent, but is null instead.

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


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.