Style in Flex4:-
Style is a process to change the look and feel for single component or apply them all component in your application. If user want to change the appearance then it is used style properties for a single component or group of components or all components in the application. Here is a example that hold the process to apply simple style for the component. User can set the style properties depends on the components architecture.
In this example user can see how to apply a simple style for a component. This example includes Label component.
xmlns:s="library://ns.adobe.com/flex/spark"> <s:VGroup> <s:Label id="myLabel"
text="This is Spark label component"
In this example we have create a label component and set the style properties like "fontSize", "fontWeight", "fontStyle", "color" properties.
This is the general way to apply style for a component.
Posted on: June 1, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles