How can i get a property from a string?

does anyone know a way to use a string to to retrieve the property with that name?
something like…


var myString:String ="myVarInMovieClip";
var myString2:String ="x";

//trace the value of variable myVarInMovieClip, and the x coordinate.
trace(myMovieClip.toProperty(myString));
trace(myMovieClip.toProperty(myString2));