As far as I know about Tile, it calculates about rows and columns after doing some Math. Calculation is based on number of children, width/height of children and width/height of Tile. If you want it be 3x1, you can set the width of Tile to be:
 
width_of_Tile: = width_of_child * marginLeft + marginRight + someBuffer.
 
See the code the below, for example:
 
##TileExample.mxml##
 
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" backgroundColor="#FFFFFF">
 
    <mx:Panel title="Tile Panel">
 
        <mx:Tile marginBottom="10" borderStyle="inset" verticalGap="15" id="myFlow"
            marginLeft="10" backgroundColor="#FFFFCC" marginTop="10" marginRight="10"
            horizontalGap="10" direction="horizontal" width="100">
 
            <mx:Button label="1" height="50" width="75"/>
            <mx:Button label="2" height="50" width="75"/>
            <mx:Button label="3" height="50" width="75"/>
            <mx:Button label="4" height="50" width="75"/>
            <mx:Button label="5" height="50" width="75"/>
            <mx:Button label="6" height="50" width="75"/>
 
        </mx:Tile>
 
    </mx:Panel>
 
</mx:Application>
 
 
Does that help?
 
-abdul

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kim Reddington
Sent: Saturday, July 02, 2005 12:45 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Tile

Is there anyway that I can override the rows and columns that a tile uses to create itself?  I would like to determine that there be 3 rows across, but the Tile tag automatically sets up 2x2.  I would like 3x1.  Maybe I could create a new Tile component that extends Tile?  I'm just not sure what sets this up.
 
Thanks,
Kim
 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to