Here is the first Flex component I would like to share : a very simple image button that turns gray when it is disabled.
Its main advantage is that the user gets an immediate visual feedback on the actions than can’t be performed or that are unlocked by an action.
A second advantage is that there is only 1 asset to be managed : the source image, you don’t need to create a disabledskin.
The ImageButton class actually applies a ColorMatrixFilter on the source image to create the visual effect, so no other asset is required. The label property remains available but the aim of this button is to have only one image, without text.
The component is used very easily by binding its enabled property.
You can see it in action below. Just click the button to disable all buttons. You can compare the behavior of each button containing an image
Download source here : ImageButton