Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text wrap carrying space

Status
Not open for further replies.

BDNFLNC

Technical User
May 30, 2002
202
US
We've got a Flash project where our developer is bringing in some text from an XML document. At the end of each line the word wrap works just fine... EXCEPT... when the line ends on the last letter of a word, the space after that word ends up at the beginning of the next line of text.

Has anyone come across this problem before? Unfortunately I can't get the code or a sample, but it is a basic question I think.

If someone has seen this type of issue some feedback would be appreciated.

Thanks!
 
basically textfields in flash are poor

avoid using createTextField and TextFormat wherever possible. wherever you can, create your textfields manually on the stage and set their formatting properties there. If you need to change the text in a textfield, make it
blank first (e.g. mytext_txt.text = "";)

if you have to create the textfield dynamically, try setting 'multiline' to true as well as wordWrap
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top