Call variable in path?

I want to create a variable that I can call in a path. For instance:

var myVar = "varHome";

Then, to use in code:

_root.mcContent.varHome.gotoAndPlay(1);

Can you do that? This way obviously doesn’t work (because I’ve tried it). Is it possible at all?

Thanks!
:tie: sogj