Storing expressions in variabels?

Hello everyone!

Is it possible to save more complex expressions in variables and use it later/in an other object?

For example:
If i want to store the expression (not the value) of [COLOR=black]in a variable, for exampe type something in an input textfield and then use it during runtime.[/COLOR]

Say i type “[COLOR=red]mc._x +100[/COLOR]” (without "-marks) into the textfield myText on stage (while the movie is running)

[COLOR=red]function stageTrace(value) {
trace(value);
}
bt.onRelease = stageTrace(myText.text);
[/COLOR]

Since myText.text is a string the output will be exaclty what i typed in. What i wan however is flash to treat it like an expression, and send a number to the output window. How do i acomplish this? (i’ve tried with eval and [ ], none of them gives the effect i want :h: …)

What am i doing wrong?

Thankyou for your time/
Martin