Groups | Blog | Home
all groups > flash actionscript > march 2004 >

flash actionscript : Line Breaks with Flash and Coldfusion


EktoEkbat
3/28/2004 8:49:47 PM
Hi,

I have a form on Flash that sends a multi-line field to a ColdFusion file, so
it sends an email.

The line breaks are not preserved. This is my coldfusion line that I thought
it could work... but no luck:

I read on another posting that "\r" is the Carriage Return character for
Flash, but seems to be that is not working.


#Replace(form.message_txt,"\r","<br>","all")#

and I have tried:

#Replace(form.message_txt,"#\r#","<br>","all")#
#Replace(form.message_txt,#\r#,"<br>","all")#

no luck either..

With HTML forms I would normally use :

#Replace(form.message_txt,"#chr(10)#","<br>","all")#

Please Help!!!

Thanks in advance!

Cheers,
M.
N Rohler
3/28/2004 9:53:31 PM
does your textfield in flash have html enabled? if not, I think that might
solve your issue. If you're sending html email, just do the following to your
code before passing it to your CF script to fix it:
varToPass = myTextfield.text.split(chr(10)+chr(13)).join("<br>");
EktoEkbat
3/28/2004 10:06:50 PM
Hi, Thanks for replying!

Yes, I have tried "render as HTML" turned on, and off... no luck...

Now, I changed your line to read:

sendData.message_txt = this.commentsInput.text.split(chr(10)+chr(13)).join("
");

Is the syntax and logic fine?
does the 'join' param have a space? or is empty? ("") or (" ")

how about the Coldfusion layer? should I use the "#Char(10)#" , or the "\r"?
on the Replace function?

Thanks again!
M.
EktoEkbat
3/29/2004 4:00:47 AM
I think I ran out of ideas.... anyone, please?

Thanks!
..cheers!
kglad
3/29/2004 6:55:09 AM
kglad
3/29/2004 7:00:46 AM
i know you want to go to frame 1 of some movie. but i don't know which movie.
you can use the full path name to that movieclip and should have no problem:

on(press){
_root.some_parent.some_child.and_possibly_more_children.gotoAndPlay(1);
}

p.s. if you're not sure of the full path name to a movieclip you can always
put this in the movieclip's timeline: trace(this);
EktoEkbat
3/29/2004 1:35:21 PM
could someone please help?

I am going bananas here. =(

I'll appreciate it!
..cheers!
AddThis Social Bookmark Button