|
|||
|
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?? ??? |
|
|||
|
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;
Code:
var message = FlashPlayer.getVariable("Message");
message = (message == null) ? "" : message;
message = message.replace("\r", "\r\n", true);
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|