Hola,
puedes ir capturando los cambios del texto con el evento onChanged de TextField, y cuando el texto introducido coincida con ese texto, llamas a la función que quieras:
Código ActionScript :
var tf:TextField = this.createTextField("tf", this.getNextHighestDepth(), 0, 0, 100, 100);
tf.border = true;
tf.type = "input";
tf.onChanged = function():Void
{
   if (tf.text == "hola")
   {
      onRightText();
   }
}
function onRightText():Void
{
   trace("buenos días");
}