[Flex 4] Float left or right in layouts or containers? i have开发者_Python百科 a main container, that is dynamic, 100% width, and in it there are 3 components. one should be floating to left, to right and the other will be centered. how do i do that?
What do you mean by float? Is there any reason a group with a HorizontalLayout won't work?
<s:group layout="{new HorizontalLayout()}" width="100%>
<container1>
<container2>
<container2>
</s:group>
Add your 3 components to an HGroup (spark) or an HBox (halo). If you want dividers that allow your components to be resized, you can use an HDividedBox. Hope that helps.
Edit: Here's a code example based on your comment:
<s:HGroup width="100%">
<s:Panel id="fixedPanel1" width="150"/>
<s:Panel id="variablePanel" width="100%"/>
<s:Panel id="fixedPanel2" width="150"/>
</s:HGroup>
Is this what your are looking for?
精彩评论