Because KeyboardEvents are not cancelable in Flash Player, you can
listen instead for "textInput" event and prevent starting the new line
if Enter key was pressed.
/////////////////////
<mx:Script>
<![CDATA[
private function txtInputHandler(event:TextEvent):void{
if (event.text=="\n"){
event.preventDefault();
event.stopImmediatePropagation();
}
}
]]>
</mx:Script>
<mx:TextArea x="31" y="84" id="userInput"
textInput="txtInputHandler(event)"/>
/////////////////////
But then mx:TextArea behaves like single-line mx:TextInput input control...
--
Best regards,
Andriy Panas