Remove extra returns from dynamic text
snipped by vixiom
Flash and Flex text boxes sometimes like to add bonus returns/line breaks to text coming from a database and displayed in text box. Here's a one liner to remove them.
'descriptionText' is a text box (mx:Text), 'description' is a string of text from the db.
descriptionText.text = description.replace(/r/g, '');




