ADOBE FLEX 3 22
• The ContainerMovieClip.content property is the default property of the ContainerMovieClip class.
Therefore, when using a Flash container in MXML, you can omit the
However, if you create an MXML component based on the Flash container, you must specify the
ContainerMovieClip.content property. For more information on defining MXML components and using
the default class property, see “Simple MXML Components” on page 63 in Creating and Extending Flex Compo-
• If your Flash container modifies the visual characteristics of the Flex components contained in it, such as the
alpha property, you must embed the fonts used by the Flex components.
Creating an advanced Flash container
In this example, you create a container in Flash that lets the user expand and collapse the container in response to a
mouse click. The following image shows this container:
The following symbols define the parts of this container:
Callout Symbol name Description
A ResizeArrow Defines the icon use to collapse the container. The arrow points down when the container is expanded, and to
the right when it is collapsed. Click the arrow to minimize the container, and click it again to restore it to its original
B OuterArea Defines the background color of the container.
C Title Defines the title text.
D TitleBar Defines the area of the container in its collapsed state.
E ContentArea Defines the white background for the area in which you place Flex controls.
F FlexContentArea Defines the area for the Flex components. This area is sized to match the size of the ContentArea.