0 Replies Latest reply on Apr 15, 2011 10:58 AM by flexy_flex

    SkinnableComponent default skin not replaced by style module


      I'm using Flex 4.


      I created a skinnable component.  I need a default skin so I give it one (nothing in it).


      When I load my styleModule that contains all my custom programatic skins, the default skin is not overwritten.

      The skinnable component's styleNmae (css style) is used to refer to the correct skinclass in the style module.



      If I keep everything the same, but change my class from SkinnableComponent to a base spark component such as Label, then the label shows up fine with its default spark skin then gets it's new skin when the style module loads.



      Is there some special command or event I should be using for runtime loading of skins on skinnable components?