Can you be more specific?
i want to apply linear gradient in s:Application. But i want to apply with the help of css like what we use to do in case of Flex 3.
If we have to apply background gradient in application using flex 3 we can simply type in css file
backgroundGradientColor: #ff00ff, #00ff00;
but in flex 4 how to do the same ?
That changed in the new architecture:
you need to drop something like this in your main app or create a new skin for the main app and drop it in there:
<!-- background -->
<s:Rect left="0" right="0" top="0" bottom="0">
<s:GradientEntry ratio="0" color="#ff00ff"/>
<s:GradientEntry ratio="1" color="#00ff00"/>
Need to play with the gradient but ration and color values but you get the picture...
The old way does not apply anymore as far as I can tell ...
You can define your own backgroundGradientColor read it in the custom skin updateDisplayList and do the drawing yourself, but I am not sure it is worth the effort.
Thanks a ton Claudiu.
But if suppose there is a requirement that a particular application when sold to different vendors can be stylized only through css how can this be done ?