Reaching a MovieClip from a String Path

Hello everyone

I have the path to a movieclip, in a string format. For example:

var pathString:String = “container.boxMC.ball”

I want to be able to reach that movieclip type (ball). I tried using something like getDefinitionByName(pathString), but gives me the error:

Variable ball is not defined.

Any ideas?