Tag Archives: labelFunction

Creating a custom label function on a Spark ButtonBar control in Flex 4

In a previous example, “Creating a custom label function on a Flex ButtonBar control”, we saw how you could use a custom label function to create button labels on an MX ButtonBar control in Flex by setting the labelFunction property.

The following example shows how you can set a custom label function to create button labels on a Spark ButtonBar control in Flex 4 by setting the labelFunction property.

Full code after the jump.

Continue reading Creating a custom label function on a Spark ButtonBar control in Flex 4

Setting a label function on a Spark List control in Flex 4

In a previous example, “Setting a label field on a Spark List control in Flex 4”, we saw how you could set the label field on the Spark List control in Flex 4 by setting the labelField property.

The following example shows how you can set a custom label function on a Spark List control in Flex 4 by setting the labelFunction property.

Continue reading Setting a label function on a Spark List control in Flex 4