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

Reply via email to