0 Replies Latest reply on Sep 22, 2013 3:58 AM by rerobnett

    skinStyle not working custom container

    rerobnett

      I have made a custom skin for the spark skinnable container.

       

      I am trying to use it in a custom container class that extends skinnableContainer below skows hoe I've tryed to implement it.

       

      package {
           
           import spark.components.SkinnableContainer;
           import assets.graphics.ChromeSkin;
      
      
           public class CustomChrome extends SkinnableContainer {
      
                public function CustomChrome() {
                     super();
                    setStyle("skinClass",ChromeSkin);
                }
           }
      }
      

       

      When I implement CustomChrome:

       

      import CustomChrome;
      
      var customChrome:CustomChrome = new CustomChrome();
      
      addElement(customChrome);
      

       

       

      The custom skin does not show up.

       

      If I use the skin on a skinnableContainer in mxml the skin does show?