Hi,
I have a working flash movie with an ASP page that retrieves text from a database and displays it in a dynamic text box.
The only problem is that if i have a newline in the text, flash seems to put two newlines.
Is this a bug or a setting that needs to be made in order to rectify this?
I had originally used html code so the html setting is set for the textbox. This isn’t strictly needed now but would this be the cause?
regards,
FM
system
2
mark in the dynamic text’s properties “use html code” and text you want to write in it convert to html code eg.
instead of
“once upon a time…blah…
and they were living…”
write
“once upon a time…blah…<br>and they were living…”
but don’t use any “ENTERS”!!!
cuz flash interprets them as a double extraline
system
3
Aha…
That explains it, thanks.
system
4
does that mean if you want an automatic wrap for a very long sentence you’ll have to write the whole sentence in one single line?
system
5
I found that if I do this in the ASP page which retrieves the data and sends it to the flash movie…
PageText = Replace(PageText, vbcrlf, “<br>”)
The problem disappears.
Now if you have one ‘enter’ in your text Flash shows one ‘enter’ and not two.
(Took me ages to work out how to write this <br>)