1 person found this helpful
Are you trying to get the default skin ? If so, its at "spark.skins.spark.ButtonSkin".
cool, where does button.as specify that?
its cause I'm trying do the same with a custom component
Spark components like Button.as don't define thier default skins internally. If you want a skinnable component to have a default skin so that you don't have to manually specify the skin every time you have two options. The preferred method, and the one used in the flex sdk, is to use a css file to specify the skin for the component. If you don't want to do that, then the other option is to call setStyle("skinClass", YourSkinClass) inside the constructor of the actionscript component.