Using a variable in a path

I’m curious why this doesn’t work.


var whereTo = _global.addressDestination;
addressSubmit.onPress = function(){
    trace(_global.addressDestination); // traces address_1_txt which is correct
   _root.front_mc.whereTo.text = myAddText.text;
}

whereTo traces, so why doesn’t it work?

Thanks!