How can i change the colour of key words in long text fast ?
hi,
i have long text (for example script) should displayed in textarea (or similar) colored keywords.
tried textrange
new textrange (mytextarea, true, start_index, stop_index)
and with
richeditabletext
var highlightformat:textlayoutformat = new textlayoutformat();
highlightformat.color = 0xff0000;
for each (var currentkeyword:string in keywords) {
....
myricheditabletext.setformatofrange(highlightformat, indexofkeyword, indexofkeyword + currentkeyword.length);
either ways slow, 30 sec....
the indexes of words should colored computed below second creating object every keyword expensive .
any idea should ?
More discussions in Flex SDK
adobe
Comments
Post a Comment