actionscript - How can I change the color of a substring of a LinkButton's label in Flex 3? -


I am trying to figure out the best way to change the color of only one character on a link button control. Here's something like this:

  & lt; Mx: style & gt; MyLinkButtonStyle {textRollOverColor: #FFFFFF; } & Lt; / Mx: style & gt; & Lt; Mx: link button label = "my label" style name = "myLinkButtonStyle" />  

... The most suitable, what would be most "flex-appropriate" (if you want) to change, for example, from the word "label" to white with red Only on rollover? It seems that it should be relatively simple, and I'm sure there is a texture there, but I thought I was asking a question to hack badly) Thanks alley advance!

I do not think it's built in. My guess is that you need to subclass the LinkButton subclass, overwrite the properties committed and highlight that there is an additional asset on the UpdateDisplayList and Subclass that you need to define the word or range.


Comments