Use HRule to divide controls : HRule « Components « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Components » HRuleScreenshots 
Use HRule to divide controls
Use HRule to divide controls
       
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Script>
    
        [Bindable]
        public var myArray:Array=[123456];
  
    </mx:Script>
    <mx:ArrayCollection id="myAC" source="{myArray}"/>
    <mx:Repeater id="myrep" dataProvider="{myAC}" count="6">
       <mx:Label id="Label1" text="Value: {myrep.currentItem}, Loop {myrep.currentIndex+1} of {myrep.count}"/>
    </mx:Repeater>
    <mx:HRule/>
    <mx:Repeater id="myrep2" dataProvider="{myAC}" count="4" startingIndex="1">
        <mx:Label id="Label2" text="Value: {myrep2.currentItem},Loop {myrep2.currentIndex-myrep2.startingIndex+1} of {myrep2.count}"/>
    </mx:Repeater>
</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.Map some HRules and VRules to constraint rows and columnsMap some HRules and VRules to constraint rows and columns
4.HRule stroke colorHRule stroke color
5.HRule width is binded to another controlHRule width is binded to another control
6.Use HRule for FormUse HRule for Form
7.Rule PropertiesRule Properties
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.