How can I change the select ("highlight") color of an TextField in actionscript 3? I've got an input textfield with white text on a black backdrop and as a result, selections are invisible, which is horrible for usability. Thanks!
+1
A:
var c:Color = new Color(MyTextField);
c.setTransform({rb:255});
or for a more up to date approach:
PeanutPower
2010-01-15 14:58:05
+2
A:
Another approach is to use the Text Layout Framework, specifically a TextFlow using a SelectionManager. With the TLF, you can directly control the SelectionFormat properties used for your text.
e.g.
TextFlow.defaultConfiguration.focusedSelectionFormat = new SelectionFormat(0x00FFFF);
There's a bit of a learning curve to pick up the TLF's way of doing things, but the payoff is significantly enhanced text customization.
ZackBeNimble
2010-01-15 19:36:00