Storing Path in a Var

I’m not entirely sure how to go about this, but I want to store a path inside a var to reuse throughout some interface code:


var thisPath:Object = pageText_mc.pageCntrls_mc;
[thisPath + "."]prevButton_mc._visible = false;
trace(pageText_mc.pageCntrls_mc.prevButton_mc._visible);

No error, but it doesn’t yet work. Any ideas?