I have '\r' r characters in that myTextArea.text,
but not '\n' n ones.
Should I try to replace r with n?
Any useful TextArea properties to display new lines?

Please advise.

TIA,
Oleg

--- In flexcoders@yahoogroups.com, "Oleg Konovalov"  wrote:
>
> Hi,
> 
> I am working on old Flex3 (Cairngorm2) app.
> One of TextArea's there is completely ignoring new lines (Carriage 
> Return/Line Feed)
> and even skips some spaces (others work fine).
> 
> Code is pretty simple (well, little simplified here):
> 
> ...
> 
> private function updateText(evt:Event):void {
>  var event:UpdateEvent = new UpdateEvent(UpdateEvent.UPDATE_EVENT);
>   event.myText=myText.text;
>   trace("myText"+event.myText) //added by me
>   event.dispatch();
> }
> 
> 
> I have read about weird behaviors of TextArea (skipping or even doubling some 
> characters) on the net,
> but so far could not find anything applicable in that case.
> 
> For example, something like    myText.text.replace("\n", "\r") doesn't change 
> anything.
> I guess, there is no "\n" there.
> 
> If I trace, it returns line without newlines (like:  
> 'startskip1lineskip2linesend;').
> But if I copy-paste that line to say another TextArea on the screen (or non 
> flex Chat app, I would get multiline text:
> 'start
> 
> skip1line
> 
> 
> skip2lines
> end;
> 
> And for various reasons I can't debug that app.
> 
> Any idea what might be wrong and how to fix it?
> 
> Please help!
> 
> TIA,
> Oleg.
> P.S.:  App connects to SPs in the Database via Web Service. No BlazeDS.
>


Reply via email to