I think you probably want the Tile
container in this case (TileList won’t work very well). You may need to update
the properties on the Tile itself as you change the number of children so that
it will adjust automatically. I’d imagine though that you want some sort
of transition effects as you resize and move everything around, I don’t
have any sample code for you off the top of my head, sorry!
Matt
From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 20, 2005
6:08 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Tile or
TileList with resizable children
Is possible to have a tile component or a tileList
one, that have item
children resizing according to the size of the
component itself?
Basically I want to dislpay a range of 1 through 4
images and
depending on the number of images I want to
display them at a size of
100% of the container. So if there is only one
image it will fill the
container space, with 2 images the space will be
divided in 2 columns
and each image will take 50% of the space; with
3-4 images instead we
will have 2 columns and 2 rows.
Yahoo! Groups Links
|