AS3 no eval string concatenate question

I’m having a string concatenate problem. As3 got rid of the eval command so does anyone know how to do something like this in AS3.

var string1:String =“ObjectA” ;
var string2:String =“x” ; //any property

function getMyNumber(string1:String,string2:String){
//get the value from concatenated strings such as num = myCircle.x
// or num=myCircle.width

var num:Number=      string1 + "." + string2   ;

return num;
}