TLF Highlighting and missing lines when scrolling.
I have a TLF (tried it both in a canvas, and by using s:TextArea) that I want to display a document in with different words/areas highlighted.
I do the highlighting via a selection and edit manager:
var ss:SelectionState = new SelectionState(tf, myStart, myEnd);
editManager.applyLeafFormat(textLayoutFormat, ss);
This works great, and highlights as I want, however when I scroll the text area, any lines that have a highlight in them suddenly dissappear! If I scroll back to the start, they re-appear.
Any ideas? Am I going about applying highlghts the correct way? I am not doing anything on the textarea scroll event. Do I need to be?
Very odd behavior.
-Ryan
