2/22/2008 1:13:00 PM
by Stefan Kratz in
Design |
Flex |
RIA |
Technology
One of the problems we encountered when developing Yooba Studio was
getting access to a small but crucial part of a Flex Component: the
CheckBox check icon. In many cases, most of the parts of a component
is accessible via relatively easy means, making it easy for developers
to modify its behaviour and appearance. But the CheckBox (and the
RadioButton) was a different story. We wanted to change the check mark
color at runtime and after doing some digging, I found the hard coded
color value in CheckBoxIcon.as. Creating my own version of the file (thanks Alex!) we were able to do just what we wanted with the icon.
An example of how to go about it can be found here.
This
is an example of when the open code in the Flex SDK is of great value -
without it things would have been much more difficult in the every-day
coding.
Tags: as, actionscript, source, code