问题描述:

In Flex 4, how do I change the appearance of a radio button? I want to change the dot size so it is bigger (ie radius=20) and instead of the label I need to add an image. Can anyone help me on this please?

网友答案:

Create a custom Spark RadioButton skin class. There is an example to create a multiline RadioButton label at flexexamples.

Search for the <!-- dot --> part in the skin file and replace it with your bigger dot. Create your dot using Adobe Illustrator, or programmatically in Flex using FXG or mxml (see Shapes in FXG and MXML graphics).

Using an image for the label will be more complicated. You will need to define a custom Skin Part for your RadioButton.

相关阅读:
Top