Groups contain content items. In MXML, these items are
typically of type IGraphicElement (the base interface class for
graphic elements), but can also include effects such as the <transform>, <filters>, <mask> elements, and
other <Group> elements. In MXML graphics,
items inside a group can be any MXML tags.
You define a group in an FXG document by using the <Group> tag.
In MXML graphics, you use the <s:Group> tag,
which corresponds to the Group class. This
class implements the IGraphicElementContainer interface.
The order of graphical objects inside a group determines their
depth order when rendered. The last object defined in a group is
the top-most tag of the depth order.
A group can be inside a graphic or another group. When a group
is inside a graphic or other group, it is considered an instance
group. Instance groups can optionally contain features such as transforms,
filters, and masks. The order that these children appear does not
matter. Graphical effects such as these are rendered based on a
predefined order, as described in Effects in FXG and MXML graphics.
A Group can also be used inside a definition in the library section.
When a group is inside a definition, it is considered a symbol definition.
Groups inside libraries (symbol definition groups) cannot contain
effects such as masks or transforms.
A group defines a new local coordinate space for its immediate
For more information about using the <s:Group> tag
in MXML, see the ActionScript 3.0 Reference for the Adobe