Executing an AS command stored as text?

here’s what i need to do. suppose i’ve stored some actionScript statement like say movieClip._x = 200;
or movieClip.removeMovieClip();
as a text string inside a string variable or a text file.
is there a function that can take this string as an argument and execute the statement?