Reputation: 163
I wish to provide simple highlighting feature where a user selects some range of text in a TextField and selects a color and that text's background is highlighted with that color like a marker, its a standard feature on most text editors and word processors. How to achieve this in AS3 (not flex) esp without using html/css in TextField.
Upvotes: 0
Views: 1270
Reputation: 163
Solution here: http://tom-lee.blogspot.in/2007/01/textfield-highlighter-class-for-flex.html
Also while hunting for solutions I came accross a generally useful class from Greensock called TextMetrics.
Upvotes: 0
Reputation: 2158
Here is a good example of what you want to do: http://blog.formatlos.de/2009/06/22/as3-texthighlighter/
Upvotes: 1