1 person found this helpful
backgroundImage was likely a style that's part of the Halo theme
rather than being a property for the component. So you can either
decide you want to use the Halo theme to get it back, or you can just
put the image in yourself.
Use of GridItem of course scares us since the Grid is a pretty
Thanks for the reply Matt.
I am rather new to Flex, C++ C# for years =).
What class would you suggest I use instead of Grid ?
Well with Flex 4 we want you to look at the Spark layouts, so look at
the Group class and the different layouts like Vertical, Tile,
Horizontal, and Basic (which can allow you to use constraints).
As for what would replace the Grid, it really depends on what you're
looking for. Would need to know what you're laying out.
I am currently using <s:HGroup and <s:VGroup quite abit. I was using <mx:grid because it is easy to format, very similar to <Table></Table>. I can see with embedding Groups you could get the same effect as a grid. It was just easier with my limited knowledge of flex to format a Grid and get the look I was looking for.
In the app I am changing the Alpha of a button when it is selected to display the background Image of the GridItem that holds the buton.
Here is a screenshot of how I was using Grid. And you can see the buttons to the left.
For Flex 4 you should be looking at DataGroup and ItemRenderers
instead of Repeaters. Use a TileLayout on your DataGroup and you
could be in good shape. I believe it will be cheaper to use those
direct nested containers as appropriate than a Grid (which has a lot
of nesting), but I can't be sure.