if (Key.isDown(Key.ENTER)){ str="Test complite !"; } else { str="Test aborted !"; } _root.g_counter.text=str;