[flexcoders] Utilizing HBox or VBox layouts without actually using them

2010-03-29 Thread djamsheds
I have a bunch of visual objects that should be Hbox'ed and Vbox'ed at 
different times (e.g. object obj1 can should be in Hbox1, and after a certain 
action obj1 should be moved right to the middle of VBox1, and after that it 
could be moved to bottom of VBox2). 

Using CollectionView is one of the choices, but I still feel uncomfortable with 
wrapping the objects to the  HBox (or VBox) because they really yell for 
freedom. Is there any way I could lay these objects out by stating just 
layout as VBox without adding any Vbox into the stage ? 



Re: [flexcoders] Utilizing HBox or VBox layouts without actually using them

2010-03-29 Thread Alex Harui
In Flex 4 you can try replacing the layout of a container.


On 3/29/10 10:01 AM, djamsheds djams...@gmail.com wrote:






I have a bunch of visual objects that should be Hbox'ed and Vbox'ed at 
different times (e.g. object obj1 can should be in Hbox1, and after a certain 
action obj1 should be moved right to the middle of VBox1, and after that it 
could be moved to bottom of VBox2).

Using CollectionView is one of the choices, but I still feel uncomfortable with 
wrapping the objects to the  HBox (or VBox) because they really yell for 
freedom. Is there any way I could lay these objects out by stating just 
layout as VBox without adding any Vbox into the stage ?






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui