I am converting Animate/Flash projects to OpenFL based HTML5 projects. Most of the display objects are stored in the SWF file.
When I embed a static text field that has multiple lines of text, the width property is ignored and the text is displayed as one line. If I insert line breaks to ensure multiple lines, formatting such as bold, etc. is lost.
If the text field is a dynamic text field with multiline option on, the width of the text field is preserved so I get the multiple lines but again some of the text formatting is lost.
So when I do need dynamic text fields, I have to code those. But using the auto-size options sometimes results in the text field being shifted horizontally when text is placed in the field. I’ve had to make my own subclass of text field so that I can specify the text and x coord of the field and it mimics the behavior of the auto-size options.
For labels and other text that does not change, I have to resort to making individual static fields for each line of text.
Anyone have better solutions for these problems?
Thanks in advance!