Skip to main content
March 26, 2009
Question

Damage?

  • March 26, 2009
  • 1 reply
  • 533 views
Can I get clarification for what the damaged event means? It seems to get dispatched when the text data changes. Is it simply a way marking the textflow as "dirty" and ready for re-flowing?

thanks
This topic has been closed for replies.

1 reply

Adobe Employee
April 1, 2009
Yes. The damage event is sent when the text model has been updated, and the appearance on screen, or as composed, is out of date. In other words, if you add text, change properties, resize, etc., each one of these will send a DamageEvent. This alerts the client to the fact that there will need to be a later call to updateAllContainers to update the display on screen. If you are making changes through the IEditManager, it will take care of calling updateAllContainers for you. But if you are calling directly into the TextFlow or the IContainerController, you will need to call updateAllContainers in your own code to see the changes reflected on screen.