Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-01-2009, 12:53 PM
Junior Member
 
Join Date: Jun 2009
Posts: 10
Default newline problem

hi,
i have a TextArea component in flash and i take the text that is introduced in it when someone hits the send button. in flash the text has new line in it. but in the mail that the programm sends with ffish the text has no line break. how can i make ffish write also the line breaks?
Reply With Quote
  #2 (permalink)  
Old 10-05-2009, 07:35 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default

The newline in flash is '\r', but normally it should be '\n' or '\r\n'. So you can replace all '\r' in your flash with '\n' by using the replace method:

Code:
str.replace('\r', '\n');
Reply With Quote
  #3 (permalink)  
Old 11-18-2009, 04:17 PM
Junior Member
 
Join Date: Jun 2009
Posts: 10
Default

i've replaced the '\r' with '\r\n' and it worked. thanks.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:36 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.