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!
相关问题
- how to get selected text from iframe with javascri
- garbage collection best practices
- Should I wait for Flash Player 10.1 or go with Fla
- How to load flex swf from flash?
- how to solve the issue with group by and aggregate
相关文章
- SELECT statement not using possible_keys
- Dplyr select_ and starts_with on multiple values i
- how to use jq to filter select items not in list?
- Are there any benefits when using final in AS3?
- Trace on Chrome/Browser console
- MySQL: Writing a complex query
- as3 ByteArray to Hex (binary hex representation)
- Codeigniter Select_Sum returns “array” not numeric
Here you can find a class doing the job
http://labs.hellokeita.com/2008/03/13/textfield-selection-color/Reference site is down with its class :(
Here you can find something similar, although not so powerful: http://yourpalmark.com/2007/08/13/changing-selection-color-on-dynamic-textfields/
Try this:
or for a more up to date approach:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/geom/ColorTransform.html#includeExamplesSummary
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.
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.