1 Reply Latest reply on Aug 4, 2011 11:27 AM by saisri2k2

    Single Skin class for multiple childcontainer

    jksnu

       

      Hi,

       

      I have created a simple mxml file with code as follows:

       

      <s:application..........>

         <s:BorderContainer>

            <s:SkinnableContainer id="firstRow"/>

            <s:SkinnableContainer id="secondRow"/>

            <s:SkinnableContainer id="thirdRow"/>

         </s:BorderContainer>

      </s:application>

       

      Now I want to apply different font size, font color and font type and background color on each row i.e each of the three skinnableContainers.Currently I have defined 3 different skin classes for each of row but I think this is a bad programing.

      I should create a single skin class for outermost container i.e BorderContainer and any how provide different fonts and background color to all the 3 child containers through that skin class.

      So, is it possible that I can create single skin class that can provide different decorations to each of the child container.