Components Flex



    xmlns:mx="library://ns.adobe.com/flex/mx"
    xmlns:s="library://ns.adobe.com/flex/spark">
    
        
    

    
         
        import flashx.textLayout.elements.*; 
        private function copyContents():void { 
            /* Get the first leaf in the TextFlow. */ 
            var leaf:SpanElement = new SpanElement(); 
            leaf = SpanElement(richTxt1.textFlow.getFirstLeaf()); 
            /* Write the contents of the first leaf to the second RET control. */ 
            richTxt2.text = "LEAF:" + leaf.text + "\n"; 
            /* Iterate over the remaining leaves and write their contents 
            to the second RET control. */ 
            while(leaf = SpanElement(leaf.getNextLeaf())) { 
                 richTxt2.text += "LEAF:" + leaf.text + "\n"; 
            } 
        } 
      
    

    
                    textAlign="justify" percentWidth="100">
            
                
                    
                        
                            1) Lorem ipsum dolor sit amet, consectetur
                            adipiscing elit.
                        

                    

                    
                        
                            2) Cras posuere posuere sem, eu congue orci mattis
                            quis.
                        

                    

                    
                        
                            3) Curabitur pulvinar tellus venenatis ipsum tempus
                            lobortis.
                        

                    

                

            

        
    

    
        
        
    

    
                    percentWidth="100" />