Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-01-2007, 01:23 PM
Member
 
Join Date: Oct 2004
Posts: 53
Default Mail Sender Example

i just tested the "Mail Sender" Sample on the website.
everything is working just fine. but if the message text is "multiline", it is not properly displayed in the mail.

It is displayed as a single line and the first character of the new line is repeated.

why?? ???
Reply With Quote
  #2 (permalink)  
Old 11-04-2007, 02:08 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Mail Sender Example

Flash use "\r" to break a line, while SWFKit is developed in c/c++, which uses "\r\n". Therefore, to solve the problem, you will have to replace all "\r" in the message with "\r\n". That is, the original code
Code:
var message = FlashPlayer.getVariable("Message");
message = (message == null) ? "" : message;
must be changed to
Code:
var message = FlashPlayer.getVariable("Message");
message = (message == null) ? "" : message;
message = message.replace("\r", "\r\n", true);
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 04:37 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.