overwriteText method in EditManager question
I am selecting text with SelectRange() and then using the overwriteText method to replace the text. After this I reset the insert point using SelectRange() again and then call the damage method on the flowComposer and updateAllControllers. After all this the insert point is no longer flashing, but typing a character puts the character into the correct location and then the insert point starts flashing.
Is there something else I need to do to get the insertion point to show up after using overwriteText?
// It changed, so replace it!
var curSelectionState:SelectionState = compEditMgr.getSelectionState();
compEditMgr.selectRange(startWordPos, endWordPos-1);
compEditMgr.overwriteText(hyphenatedWord);
compEditMgr.selectRange(curSelectionState.absoluteStart + (hyphenatedWord.length - myWord.length), curSelectionState.absoluteStart + (hyphenatedWord.length - myWord.length));
textFlow1.flowComposer.damage(startWordPos, hyphenatedWord.length,flashx.textLayout.compose.FlowDamageType.INVALID);
textFlow1.flowComposer.updateAllControllers();
