Hi Raghu, Are you sure that the text that you are getting from the server has \n retained in it? Did you check the value using Trace and see if you are getting the new line properly?
Generally TextArea shows the text in the next line if \n exists in the string. So most probably, in your case, the string that you are getting form the server does not have \n. If you are losing it out somewhere while porting it from the server to the client, you may use some dummy separator which will never occur in your text, something like a pipe (|). And in Flex, replace that character with (\n). Regards, Venkat www.venkatv.com On Sun, Dec 7, 2008 at 1:27 PM, raghu <[EMAIL PROTECTED]> wrote: > > Hi guys.. > > I obtained the contents of a file as a string from the server. Did > this using the normal remote method invocation mechanisms. > > Now, when I assign this string to the .text property of a textarea, it > looks like all the new line characters have been replaced by a set of > spaces. > > Have any ideas on how to work around this? I'd like the new line > characters to be read correctly. > > Cheers, > Raghu. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---

