Skip navigation
gluemonkey7777
Currently Being Moderated

Dynamic textfield wordwraps incorrect

Jun 13, 2012 8:04 AM

Tags: #as3 #linebreak #wordwrap

Im loading text from XML into a dynamic textfield.multiline is true but the text doesn't wordwrap correct. Instead the text is cut off and the linebreak appears but at the wrong place.

This only happens if the text is leftaligned.

I just can't figure out a way to solve it.

Desperate for help.

 
Replies
  • kglad
    63,087 posts
    Jul 21, 2002
    Currently Being Moderated
    Jun 13, 2012 8:28 AM   in reply to gluemonkey7777

    enable the wordWrap property of your textfield.

     
    |
    Mark as:
  • kglad
    63,087 posts
    Jul 21, 2002
    Currently Being Moderated
    Jun 13, 2012 12:03 PM   in reply to gluemonkey7777

    i've not enountered or seen anyone else that's encountered that problem so i doubt it's a flash bug.  but it's possible.

     

    create a new fla and duplicate the problem.  then copy and paste the minimum amount of code needed to demonstrate the problem.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 13, 2012 6:49 PM   in reply to gluemonkey7777

    Do you have any special characters in the text? Like em dash or some special unicode characters? I've seen this in AS2 and earlier versions of Flash. I never found a solution, but it can give you some ideas of where to look — maybe.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 13, 2012 11:28 PM   in reply to gluemonkey7777

    Hi,

     

    I think you should set textfield property autosize to left.

     

    like : txtfield.autoSize = TextFieldAutoSize.LEFT;

    And if this not works, you can manually set the X property and width of the textfield on click event.

     

    This could be the solution of your problem.

     

    Regards,

    Vipul

     
    |
    Mark as:
  • kglad
    63,087 posts
    Jul 21, 2002
    Currently Being Moderated
    Jun 14, 2012 6:16 AM   in reply to gluemonkey7777

    create a new fla and duplicate the problem with the minimum amount of code needed to demonstrate the problem.  then copy and paste the code.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 14, 2012 6:39 AM   in reply to gluemonkey7777

    Are you on a Mac or PC?

     

    Curly quotes and apostrophes count as "fancy characters."

     

    Is the font embedded? What font is it?

     

    And yes, do what kglad suggests

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points