synchronizing textflows
I have a long document with a single textflow with a Div for each page.
I assign one Div at a time to a TextArea for editing.
I am doing a classical Find/Text sequence, first within a Div,
then beyond the Div in the larger textflow.
If I edit within a Div and the length of the Div text is changed,
I don't know how to apply the Div changes to the long textflow
so the next Find position is correct - it's off by the number of
characters equal to the length of the edited page length.
Here's a puzzling bit of code:
var l2:int = rtEditor.textFlow.flowComposer.damageAbsoluteStart;
rtEditor.textFlow.flowComposer.updateAllControllers();
l2 = rtEditor.textFlow.flowComposer.damageAbsoluteStart;
Under the circumstances described, l2 is correct. When updateAllControllers executes, it's still non-zero afterwards.
