Bonjour tout le monde / Hello world ! [fr/en] Un peu d’humour pour illustrer un Process Area CMMI [fr]
Jan 25

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

Related posts

Written by Arnaud
Creative Commons License
Tags: , , ,


Help me improve my blog by rating this post or sending a comment.

not goodquite goodgoodvery goodexcellent (2 votes, average: 3.5 out of 5)
Loading ... Loading ...

Comments are closed.