Reputation: 69981
I feel like every time I need to use TextField or anything else related in AS3, it becomes a giant mess of code just for a few lines.
I have tried using css as well for text but have encountered some issues where it isn't rendered the same on different servers/clients.
Are there any text handling libraries that I don't know of or some other way to manage text in AS3?
Upvotes: 3
Views: 188
Reputation: 13221
To be totally honest Flash doesn't support fonts very well, actually it's appalling. So I save myself a lot of time and just use the Flash IDE to create a textfield, embed the fonts, enclose it within a MovieClip that's then classed up and export it as a SWC and link it into my compiler as a library. Simples.
Upvotes: 0
Reputation: 9249
You could create custom GUI components to encapsulate the giant mess of code and then provide a simple interface for doing what you want. You could either extend TextField
, or, favoring composition over inheritance, your custom class could contain a TextField
.
Upvotes: 2