no idea what your form data in php looks like, but you could probably use nl2br in there and the output (xml?) doesn't include \n or \r but simply <br> as needed.

Anyway I think on Windows you get a \r\n combo. for flash, you need to strip out the \r. then \n remains and as far as I recall for AS2, the \n is still interpreted regardless of htmlText. so finally you need to strip out the \n and replace that with <br>.




On Apr 18, 2008, at 10:08 AM, Elia Morling wrote:

Thanks, but it didn't work. :(

----- Original Message ----- From: "Muzak" <[EMAIL PROTECTED]>
To: "Flash Coders List" <flashcoders@chattyfig.figleaf.com>
Sent: Friday, April 18, 2008 5:37 PM
Subject: Re: [Flashcoders] Double lines from PHP


str.split("\n").join("");

----- Original Message ----- From: "Elia Morling" <[EMAIL PROTECTED] >
To: "Flash Coders List" <flashcoders@chattyfig.figleaf.com>
Sent: Friday, April 18, 2008 3:55 PM
Subject: [Flashcoders] Double lines from PHP


I'm sending some form data from PHP to flash and all line feeds turn out to be double lines in flash.

I'm using a textfield and htmlText. I tried to conver chr(13) and chr(10) to <br> but it doesn't work.
I also tried turning chr(13) to chr(10) and vice versa without luck.

Any ideas?

Elia

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to