1 Reply Latest reply on Nov 11, 2010 8:17 PM by thx1138

    Is there a way to expose properties or styles from a skin part to the host component?

    thx1138 Level 1

      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.