For example, I have this skin that contains a border around an image. I would like to be able to let the user set the cornerRadius.
[Style(name="cornerRadius", inherit="inherit", type="int")]
I would like to see that style show up in code complete in a UIComponent that uses this skin,
<s:Image x=”10″ y=”30″ width=”50″ cornerRadius=”12″ skinClass=”ScaleImageSkin” height=”50″ source=”avatar.png”/>
However the style “cornerRadius” throws an error at compile time.
The only way I've found to pass properties or styles to a skin is through CSS or extending the host component and adding the styles or properties onto it. However this seems like a hack. Shouldn't the skin expose it's configuration to the host component? I think that is what Flex themes are doing.