3 Replies Latest reply on Aug 8, 2011 11:09 AM by UbuntuPenguin

    Where to set properties in a skin.

    Gregory Lafrance Level 6

      I am creating an application that deals with flash cards and the card component has a custom skin.

       

      The card component (host component) has private vars/setters/getters for outer background color, inner background color, and border color.

       

      In the skin I am setting the color property of the background Rects fills and the color and weight properties of the border stroke in the skin's createChildren method.

       

      Is that the right place to set these skin properties, or should they be set somewhere else, such as in commitProperties?

       

      The user can change colors for the cards, which is why the skin gets its properties from the host component.

       

      Should I be setting the property values in some other way?