Background fill for BorderContainer : BorderContainer « Container « Flex






Background fill for BorderContainer

Background fill for BorderContainer
            
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:s="library://ns.adobe.com/flex/spark">
    <mx:Script>
        
            import mx.graphics.BitmapFillMode;
      
    </mx:Script>
    
    <mx:Style>
        @namespace s "library://ns.adobe.com/flex/spark";
        @namespace mx "library://ns.adobe.com/flex/halo";
        
        .imageBorder {
            backgroundImage: Embed(source='a.png');
            backgroundImageFillMode: repeat;
        }   
    </mx:Style>
    <s:BorderContainer width="200" height="200" cornerRadius="10" borderStyle="inset">
        <s:layout>
            <s:VerticalLayout paddingLeft="5" paddingTop="5" paddingBottom="5" paddingRight="5" horizontalAlign="justify" />
        </s:layout>
        <mx:Label text="Lorem ipsum dolor sit amet consectetur adipisicing elit." />
        <mx:Button label="click me" />
        <s:backgroundFill>
            <s:BitmapFill source="@Embed('a.png')" fillMode="{BitmapFillMode.REPEAT}" />
        </s:backgroundFill>
    </s:BorderContainer>
</mx:Application>

   
    
    
    
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Define top and bottom margins for all BorderContainer containersDefine top and bottom margins for all BorderContainer containers
2.Wrap Scroller control inside the BorderContainer container to add scroll barsWrap Scroller control inside the BorderContainer container to add scroll bars
3.Set percentage-based sizes for the first two of three buttons in a BorderContainer containerSet percentage-based sizes for the first two of three buttons in a BorderContainer container
4.Set backgroundFill and borderStroke propertiesSet backgroundFill and borderStroke properties
5.Set styles of a BorderContainer container and its contents by using the borderStyle and borderColor propertiesSet styles of a BorderContainer container and its contents by using the borderStyle and borderColor properties
6.Set BorderContainer style with ActionScriptSet BorderContainer style with ActionScript
7.Set backgroundColor, borderStyle, borderWeight, and cornerRadius styles of BorderContainer container to control appearanceSet backgroundColor, borderStyle, borderWeight, and cornerRadius styles of BorderContainer container to control appearance
8.Set BorderContainer StyleSet BorderContainer Style