Skip to main content
March 20, 2008
Question

Tricky Scenerio in AS 3.0

  • March 20, 2008
  • 1 reply
  • 325 views
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
This topic has been closed for replies.

1 reply

Participating Frequently
March 20, 2008
Could you paste some of your existing code so that we can see how your code is creating these rows.
March 20, 2008
Hi James
I have code of 1600 lines and its not possible for me to paste it. Actually my code is not generating any rows. On auto arrange I am telling myUIloader1 to go to 0,0 and myUILoader2 to go to 100,100 and so on..
Actually I am interested in creating rows and if user puts any UILoader in between the rows then those rows shrink
Hope that helps
Thanks
Anuj
Participating Frequently
March 20, 2008
I'd probably create an array and push all of the loaders into that array so that I could reference them in a loop and then reset their scales and positions.