Using Tile control's tileWidth property to specify the width of the tiles : Tile « Container « Flex






Using Tile control's tileWidth property to specify the width of the tiles

Using Tile control's tileWidth property to specify the width of the tiles
         

<!--
Code from Flex 4 Documentation "Using Adobe Flex 4".

This user guide is licensed for use under the terms of the Creative Commons Attribution 
Non-Commercial 3.0 License. 

This License allows users to copy, distribute, and transmit the user guide for noncommercial 
purposes only so long as 
  (1) proper attribution to Adobe is given as the owner of the user guide; and 
  (2) any reuse or distribution of the user guide contains a notice that use of the user guide is governed by these terms. 
The best way to provide notice is to include the following link. 
To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/

-->


<!-- containers\layouts\TileSizing.mxml -->
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:mx="library://ns.adobe.com/flex/mx"
    xmlns:s="library://ns.adobe.com/flex/spark">
    <mx:Tile id="myFlow" direction="horizontal" borderStyle="solid"
        paddingTop="10" paddingBottom="10" paddingRight="10" paddingLeft="10"
        verticalGap="15" horizontalGap="10" tileWidth="100">
        <mx:TextInput id="fname" text="1" height="50" width="100%" />
        <mx:TextInput id="lname" text="2" height="50" width="100%" />
        <mx:TextInput id="addr1" text="3" height="50" width="100%" />
        <mx:TextInput id="addr2" text="4" height="50" width="100%" />
        <mx:TextInput id="addr3" text="5" height="50" width="100%" />
    </mx:Tile>
</s:Application>

   
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Create horizontal Tile containerCreate horizontal Tile container
2.Use Tile control's tileWidth to specify the width of the tilesUse Tile control's tileWidth to specify the width of the tiles
3.Retrieve last child index in a Tile, child indices are zero-basedRetrieve last child index in a Tile, child indices are zero-based
4.Get reference to last child in a TileGet reference to last child in a Tile
5.Remove item from TileRemove item from Tile
6.Tile DemoTile Demo
7.A Tile Container with draggable childrenA Tile Container with draggable children
8.Override layout to use TileLayoutOverride layout to use TileLayout
9.Create the horizontal Tile containerCreate the horizontal Tile container