PDA

View Full Version : change focusText color (flex/as3)


Dennis_gull
08-13-2008, 08:29 AM
Is there a way to change the focus color you get when you select the text, i've seen it be done before but I cant figure out how to do it. I searched the live doc's on both as3 and flex 3 but came up with nothing...
So is this possible or not? :confused:

pj-co
08-13-2008, 08:50 AM
http://gskinner.com/talks/as3workshop/

see slide #71

Dennis_gull
08-13-2008, 10:00 AM
Thanks pj-co, is there any easier way to define the colors? I have no idea how to work with the matrix system.

pj-co
08-13-2008, 10:21 AM
I dont think there is, as it says on Grant Skinner's slide, there is no official way. (perhaps in flex using a text or label component though I don't know) Basically the technique you see there is a "hack" to tint the selection a certain color by using a filter since there is no way to set it.

there is a nice tutorial for ColorMatrix here though:

http://www.adobe.com/devnet/flash/articles/matrix_transformations_04.html

It's for flash 8 but I dont think the matrix has changed at all.

Dennis_gull
08-13-2008, 10:59 AM
Okay but Is it even possible to for example calculate which matrix value I have to enter to get a specific color such as #747372?

YarGnawh
08-13-2008, 06:07 PM
http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00002079.html