In Flash Builder does there exist some property that works similar to WRAP_CONTENT
, FILL_PARENT
and MATCH_PARENT
of Android?
Asked
Active
Viewed 50 times
0

ketan
- 19,129
- 42
- 60
- 98
1 Answers
0
Flash builder does not have such properties as such, and Flex containers typically achieve this by using percentages for the width and height attributes. For example:
<s:Group width="100%" height="100%">
<s:Rect width="50%" height="100%">
<s:fill>
<s:SolidColor color="0xff6600"/>
</s:fill>
</s:Rect>
</s:Group>
will create a container of width 100% (respective to it's parent) and height 100%, and the orange rectangle within this container will be 50% of it's parent's width, and height 100%.
So, if the container is 500px, the orange rectangle will be 250px (50%) of its width.
Hope this helps. Thanks.

Gurtej Singh
- 3,244
- 1
- 14
- 27
-
Hi Victor, does my explanation answer your question? If yes, please select the answer as an accepted answer and close the question. Thanks – Gurtej Singh Jul 26 '15 at 08:45