1 Reply Latest reply on Nov 14, 2006 2:27 AM by arunbe

    Text wrap detection / calculation

    com2
      Depending on the length of a phrase, I would like to vertically centre a text in a Flash box. Is there a way in Actionscript to detect wheather text was wrapped or not? If there is no build in detection, how could it be "calculated" correctly?

      I want to vertically centre a one line header, but I want it to align it to the top of the box when the text wraps and becomes two lines.

      A related question: Can a font be forced fixed width? That would make calculation or wrap prediction much easier with variable width font.