So you are trying to give them a percent width/height to fill the grid area? If so just get a total # of UIloaders, divide total width of the row - set it's width/height. If it was Flex you could use percentHeight/percentWidth (but I don't believe that is available to AS alone).
hth. B. On Wed, Mar 19, 2008 at 4:54 PM, anuj sharma <[EMAIL PROTECTED]> wrote: > Hi Guys > I am trying to accomplish something which I think is little tricky for me > in > AS 3.0. Please help me out if you guys have any idea how to solve it. > I am putting multiple instances of UILoader (containing videos) on the > main > stage and we can put them anywhere over the screen(free flow). I have > provided 1 grid button which will arrange the UILoaders in a grid format. > I > hardcoded my program to move children to specific coordinates. I did not > use > grid becaue i don't want to stuck user from using free flow mode of moving > UILoaders. So far I am successful. Now my scenerio is that suppose I have > 8 > UILoaders in grid format placed 4 in one row and 4 in second row, and if > user put 9th UILoader in 2 nd row then all the UILoaders in 2nd row will > shrink and move to accomodate 9th UIloader. And all the UILoaders in row 2 > including 9th UILoader should be of same size. > In short in any row if I put UILoader on top of already existed UILoader, > all the UIloaders shrink symmetrically to let the video accommodated and > placed. > > For the time being I have no idea how to target this problem. Any help > will > be highly appreciated. > Thanks > Anuj > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

