I think it's likely to be String.fromCharCode(13) or String.fromCharCode(10) or a combination of the two rather than \r.
Try setting your lookfor to one of the above. Which one wil depend on where and how the text file was created. Windows will but in a carriage return and and line feed, 13 and 10, Macs and *nix will use linefeed, 10. Have a play about with them and see if it works. Ade -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jiri Heitlager Sent: 08 January 2006 14:49 To: [email protected] Subject: [Flashcoders] Linebreak textfield H there, Is is possibble to read a linebreak from a textfield with text. I can remember flash uses a [slash]r instead of a [slash]n. Is this correct? I would like to replace a linebreak with a linebreak followed by a tabspace [slash]t. this: 1.this is a text and has many lines. should be: 1.this is a text and has many lines. -- So far i can only think of something like this. But I cant get the linebreaks from the textfield. Pseudo code: var lookfor = '\r'; var replacewith = '\r\t'; textfield.text = stringreplace(textfield.text , lookfor, replacewith); Thnx in advance Jiri _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

