How can I process text in AS3 simply?

It seems to me that every time I need to use TextField or something else related to AS3, it becomes a huge mess of code for just a few lines.

I tried using css also for text, but ran into some problems when it does not display the same on different servers / clients.

Are there word processing libraries that I don't know, or any other way to manipulate text in AS3?

+3
source share
3 answers

You can create custom GUI components to encapsulate a giant mess of code, and then provide a simple interface to accomplish what you want. You can either expand TextField, or, preferring composition over inheritance, your custom class can contain TextField.

+2
source

To be completely honest, Flash does not support fonts very well; in fact, it is terrible. Therefore, I save a lot of time and simply use the Flash IDE to create a text field, embed fonts, embed it in MovieClip, which then classifies and exports it as SWC and links it to my compiler as a library. Simples.

0
source
0

Source: https://habr.com/ru/post/1757574/


All Articles