HRule width is binded to another control : HRule « Components « Flex






HRule width is binded to another control

HRule width is binded to another control
       
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"
  verticalGap="25">
  
  <mx:RichTextEditor id="myEditor" title="My Rich Text Editor"/>
  <mx:HRule strokeColor="#000000" width="{myEditor.width}"/>
  <mx:Text text="{myEditor.htmlText}" width="400"/>
  
</mx:Application>

   
    
    
    
    
    
    
  








Related examples in the same category

1.Create HRule and VRule controls using and Create HRule and VRule controls using <mx:HRule> and <mx:VRule>
2.Specify line width, stroke color, and shadow color for HRule and VRule controlsSpecify line width, stroke color, and shadow color for HRule and VRule controls
3.Use HRule to divide controlsUse HRule to divide controls
4.Map some HRules and VRules to constraint rows and columnsMap some HRules and VRules to constraint rows and columns
5.HRule stroke colorHRule stroke color
6.Use HRule for FormUse HRule for Form
7.Rule PropertiesRule Properties