You might be able to use constraintColumns/Rows.
________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of anuj181 Sent: Wednesday, June 11, 2008 12:27 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How would i layout different objects in grid form Hi I have few objects containing of type image in my HBOX container. I am letting user drag and drop those objects within the HBOX. I want to provide user the option to arrange those objects in grid layout form. There is radio button on the main application saying 'Grid' and if user selects that button then depending on the number of objects, the grid layout will be generated in HBOX (to arrange those objects). For example if there are 2-4 objects then they will be generated in form of 2x2 matrix, if 5-9 objects then they will be generated in 3x3 matrix and if 10-16 objects then they will be arranged in 4x4 matrix. For the time being I am just considering 16 objects in the HBOX. The size of the objects can be shrunk depending on the layout generated. Definitely if user selects grid option he cannot drag and drop any more. Does anyone know which is the best approach to achieve this? And is there any inbuilt Flex 3 component that will take care of this. Any help will be highly appreciated. Thanks a lot. Anuj