The Difference Between Skin and SparkSkin
When learning and looking at Spark Skinning I noticed that some skins where made from the Skin class and some where based from the SparkSkin.
I found this really confusing mainly because I wanted a clear definition in my mind as to when I use one over the other. So I tracked down Deepa and asked her. The answer she gave was..
Use SparkSkin when you are planning on doing styles, and Skin when you are not.
More information on Skins
To start looking at the details, Group dervices from UIComponent, and Skin derives from Group and SparkSkin derives from Skin.
Details
All classes that subclass UIComponent have the getStyle() method.
The Skin class is the most lightweight class to include the HostComponent functionality.
The SparkSkin class includes arrays to effect the child component’s styles.
Override the updateDisplayList() function to include your own styles.





Hello there
I was wondering what I need to get started with Flex… I’ve been developing with Flash for quite some time. Do I need Flash Builder to get started?
Sorry for such a newbie question…
I’m not even a newbie yet!
There are lots of places to start. I would recommend downloading Flash Builder and start off with the 90 day trial and see what you think.
This is really interesting. I’ve been cheating and using the right-click —> New —> New Skin way of doing it. I didn’t even know there is/was a SparkSkin. I have noticed issues that I’ve had with doing styling with Skin. Perhaps using SparkSkin will resolve those issues. Do you know of any examples or documentation out there showing the differences?
@John the only examples I can think of are within the flex framework. Some components use Skin and some use SparkSkin. Sorry I can’t be more specific. What exactly might you be looking for?
@campos All good. I’m just looking to study-up on it more and understand the differences. Heck, perhaps I should dig around and then post my findings — probably not but it’s an idea
@Derek I recommend you start at the Flex in a week page on Adobe Developer Connection to learn Flex. Flex Builder is introduced too and much more
This is the link http://www.adobe.com/devnet/flex/videotraining/
Thanks, you talk to right point.