Graphics Flex



    xmlns:mx="library://ns.adobe.com/flex/mx"
    xmlns:s="library://ns.adobe.com/flex/spark"
    creationComplete="doSomething()">
    
         
        import flashx.textLayout.elements.*; 
        import flashx.textLayout.*; 
        [Bindable] 
        private var textFlow:TextFlow; 
        private var img:InlineGraphicElement; 
        private function doSomething():void { 
            textFlow = new TextFlow(); 
            var p:ParagraphElement = new ParagraphElement(); 
            img = new InlineGraphicElement(); 
            img.source = "a.gif"; 
            img.height = 100; 
            img.width = 100; 
            p.addChild(img); 
            textFlow.addChild(p); 
        } 
      
    

    
        
    

            horizontalCenter="0" verticalCenter="0">
                    textFlow="{textFlow}" />