tags:

views:

177

answers:

2

Hi, I am new in Flex. Was just wondering what is the difference between skin and CSS?? Why it is better to use skin over CSS in Flex. Could anybody please clear my doubt. Thanks!!!

A: 

CSS usually sets the styles (colors, etc) on the out-of-the-box skin. Skins allow you to completely replace the visual appearance of a component with anything you want (images, vectors, whatever).

James Ward
A: 

Here is a great example on creating custom skins. In my experience, I had to create an Up-state background color on a LinkButton, which when using the default skin cannot be set. By creating a custom skin, I was able to create functionality to respond to the color values I wanted. So in short you can do a lot more with skins.

adamcodes