As one of the project requirements, I have to provide a functionality in my
application to be able to change the selection color of the text box. Having no
provision in Flash, I searched on the net and found one good example of doing
that with flash.geom.ColorTransform and TextFormat classes. It works fine with
windows. However, it doesn't work on Mac OSX. I am using Flash 8 with AS 2.0
for development.
Please refer the attached code
Please advice.
TIA
var my_txt:TextField = _root.createTextField("my_txt", 0, 10, 10, 250, 0);
my_txt._height = my_txt.getTextFormat().getTextExtent(" ").textFieldHeight;
my_txt.border = true;
my_txt.type = "input";
var color:Color = new Color(my_txt);
color.setTransform({rb:255, gb:0, bb:0});
my_txt.background = true;
my_txt.backgroundColor = 0xFF0000;
http://www.quasimondo.com/archives/000620.php
If I were you I would investigate adapting that approach to isolate words.
(Maybe it's been done somewhere already, might pay to search first)
Flash player version problem...I upgraded to Adobe Flash Player 9 Update 3, version number 9.0.115.0 on Mac FF2 and the color transform is working perfect!