View Full Version : TextField not showing line breaks
matthewjumpsoffbuildings
08-12-2008, 04:38 PM
This is really weird, I have a dynamic text field with embedded fonts on the stage, with some paragraphs of text in it, I pushed enter a few times, so theres some line breaks in it...
If i test the swf, the text displays correctly. But, if i turn on bold or italic, the line breaks vanish.
So instead of
Line one
Line two
I get
Line one
Line two
What on earth is going on? This happens with normal fonts like Arial...
neilmmm
08-13-2008, 08:39 AM
put new lines in by using \n
eg
my_txt.text="new line\nnew line\n\ntwo new lines";
matthewjumpsoffbuildings
08-13-2008, 04:21 PM
So are you saying that dynamic text fields wont display line breaks created using the 'Enter' key, but only if Italic or Bold is on????
Seriously, try this and tell me if its just me. Put a dynamic text field on the stage, Arial, multiline, embed fonts, normal, and put some text in there. Use enter to create a few line breaks somewhere in the text. Test the swf, it will look fine. Turn on bold or italic and tell me what happens?
matthewjumpsoffbuildings
08-21-2008, 07:11 PM
matthewBumps ;)
Im just curious as to why this happens, why its not documented, and how to fix it so that dynamic text fields created at author time with bold/italic and letterspacing will correctly display all relevant line breaks...
atomic
08-21-2008, 07:35 PM
So are you saying that dynamic text fields wont display line breaks created using the 'Enter' key, but only if Italic or Bold is on????
Seriously, try this and tell me if its just me. Put a dynamic text field on the stage, Arial, multiline, embed fonts, normal, and put some text in there. Use enter to create a few line breaks somewhere in the text. Test the swf, it will look fine. Turn on bold or italic and tell me what happens?
I did that, and it still displays the extra linebreaks?
matthewjumpsoffbuildings
08-21-2008, 07:49 PM
Wow really? I tried it on 2 different computers with flash 8, one Vista, one XP - both messed up the line breaks...
Oh sorry one other thing for the bug to occur - use the property panel to add letterspacing - it has to be greater than 0.
atomic
08-21-2008, 07:56 PM
Still works...
Wanna attach your own .fla?
matthewjumpsoffbuildings
08-21-2008, 08:43 PM
here you go, fla and swf.
im using flash 8.0
atomic
08-21-2008, 09:03 PM
You're right... It doesn't work in your .fla, but does in mine!
Can't explain it! :eek:
matthewjumpsoffbuildings
08-21-2008, 09:23 PM
maybe i need to update? is there a bugfix version for flash 8 or something?
atomic
08-21-2008, 09:54 PM
Well does mine work in your application?
alihan1988
09-15-2008, 09:27 PM
here you go, fla and swf.
im using flash 8.0
thank you. good example:rolleyes:
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.