In this tutorial we have discuss about how to use style with HRule and Vrule controls
In this tutorial we have discuss about how to use style with HRule and Vrule controlsHRule and VRule with Style in Flex:-
In this example you can see how to set style for HRule and VRule controls in your flex application. First we can create a style with the help of <mx:Style>tag and after that you can create a Rule component and apply styleName property for the Rule controls
Example for HRule:-
<?xml version="1.0"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"><mx:Style>
</mx:Style>
</mx:Application>
In this example we have illustrate how we can use style for HRule component.
Example for VRule:-
<?xml version="1.0"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"><mx:Style>
.VRule {strokeWidth:3}</mx:Style>
</mx:Application>
Output:-
for HRule:-

and for VRule:-
