How to detect that a text flow is completely composed and displayed?
Hello,
I have a text flow (text) which I would like to decorate. For example I would like to add special background and border.
The standard behavior of TLF to add background/borders is not enough in my case.
What is the best event to listen to in order to detect when the text is completely composed and displayed?
Events that may lead to new composition/rendering are resize of the window or changes to the text flow itself so whenever such events happen I would like to be notified once everything is visualized again and then do my decoration on top of the text.
Currently I listen to "UPDATE_COMPLETE" for the canvas which holds the Sprite with the text however I noticed that in some cases on this event when I call textFlow.flowComposer.isDamaged(textFlow.textLength - 1) it returns true.
I guess this is a way to find out if everything is composed and displayed and it looks like sometimes it is not so probably I should use another event.
Thanks,
Smirnoff
