Skip to main content
Participant
September 7, 2009
Question

modelChanged on FlowGroupElement on add/remove

  • September 7, 2009
  • 1 reply
  • 447 views

When calling addChild on a FlowGroupElement, modelChange is called for the added child. I think the parent model should be notified of the change as well (modelChange should be called on the parent).

If I missunderstood the usability of modelChange function, please offer an alternative. What I need is a generic function to override when the parent model changes (children are added, removed).

This topic has been closed for replies.

1 reply

Adobe Employee
September 9, 2009

I understand your point but the modelChanged calls don't bubble through the parent chain.  They generate TextFlow events.  The best thing you can do is listen for all modelChanged events and then check the parent chain.

Rich