# Annoying extra N/L in Dynamic Text

**URL:** <https://forum.kirupa.com/t/annoying-extra-n-l-in-dynamic-text/17013>\
**Category:** flash\
**Created:** [March 31, 2003, 1:50pm UTC](https://forum.kirupa.com/t/annoying-extra-n-l-in-dynamic-text/17013 "2003-03-31T13:50:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![FlashMad](https://avatars.discourse-cdn.com/v4/letter/f/d26b3c/32.png) [@FlashMad](https://forum.kirupa.com/u/FlashMad)\
**Post date:** [March 31, 2003, 1:50pm UTC](https://forum.kirupa.com/t/annoying-extra-n-l-in-dynamic-text/17013/1 "2003-03-31T13:50:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 31, 2003, 2:40pm UTC](https://forum.kirupa.com/t/annoying-extra-n-l-in-dynamic-text/17013/2 "2003-03-31T14:40:33Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 31, 2003, 4:13pm UTC](https://forum.kirupa.com/t/annoying-extra-n-l-in-dynamic-text/17013/3 "2003-03-31T16:13:58Z")

</div>

Aha…

That explains it, thanks.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 31, 2003, 5:32pm UTC](https://forum.kirupa.com/t/annoying-extra-n-l-in-dynamic-text/17013/4 "2003-03-31T17:32:17Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 31, 2003, 5:36pm UTC](https://forum.kirupa.com/t/annoying-extra-n-l-in-dynamic-text/17013/5 "2003-03-31T17:36:34Z")

</div>

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\>)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 1, 2003, 1:15pm UTC](https://forum.kirupa.com/t/annoying-extra-n-l-in-dynamic-text/17013/6 "2003-04-01T13:15:53Z")

</div>

mlk - yes
