If your component is mxml based you just add the skinclass in the declaration header. Not sure with as based components though.
Thanks for the response!
I'm trying to avoid using the "skinClass", because i see that the "button.as"
for example does not enter value to the "skinClass".
How do they (Adobe) know that the "button" should use the "buttonSkin"? i
haven't seen and connection in the button component...
I haven't done much with AS components, but it seems that you declare the parts of a skin you need in actionscript and the base skin is derived in the components baseclass. All examples i've seen set the skin in the app.
With mxml components you just declare your custom skin as part of the component, its so much easier
I think i'll dig in some more...
I would also like to get this working. I have created a custom library component that is ActionScript based. I expanded upon the implementation of Panel. There must be a better way to specify the default skin for a component? One of my coworkers suggested that I override the stylesInitialized method and set the skin class style using setStyle, but this doesn't seem right.