tags:

views:

20

answers:

1

Dear friends,

I am trying to get some hands on Flex 4. When it came to choose between VGroup and Group, I am a bit confused. Is there some good reason/distinction between the two, namely VGroup and Group with vertical layout. Which one should a develpoer prefer to get best performance ?

Thanks in advance.

A: 

From the Flash Builder Help:

"The VGroup container is an instance of the Group container that uses the VerticalLayout class. Do not modify the layout property. Instead, use the properties of the VGroup class to modify the characteristics of the VerticalLayout class."

So, in terms of performance I believe that is best using the Parent Component Group with its layout set to vertical.

<s:Group>
    <s:layout>
        <s:VerticalLayout/>
    </s:layout>        
    <s:Label text="Hello World"/>
</s:Group>
gustyaquino