PDA

View Full Version : Extra Lines when using Dynamic Text


Danman
03-11-2009, 06:05 AM
As you will probably tell, im new here, and pretty new to action script (but i have some experience with other languages)

Ok so i have a dynamic text that is linked to a var, a string variable that has multiple lines(btw is that possible?). Anyway, when i play, in the place of each of my new lines, there are two new lines. The result is having tons of space between paragraphs. Why would this be and how can i make it work properly?
Also, the newline only works properly when the text wraps onto the next line.

If you could help it would be greatly appreciated!

Cota
03-20-2009, 09:43 PM
Are you rendering the textbox as HTMLtext?

Danman
03-21-2009, 12:39 AM
Yes, but even when I don't, it still makes those extra lines. Any ideas?

Cota
03-21-2009, 02:36 AM
Can I see the code?

Danman
03-23-2009, 12:32 AM
Well, the text in the textbox is actually from a txt file. Could the newline characters from the txt translate as two lines somehow?
Does that make sense btw?

Cota
03-23-2009, 02:28 AM
Sometimes things get screwy with text files. Hard returns will occassionly render as a line break. Coping text from word documents causes hidden characters to copy also. If you want to attach files I'll take a look.

Danman
03-23-2009, 06:54 AM
Nah its fine, I think I have a way to fix it. Thanks for your help!

PS: Your nearly at 10,000 posts!