Package | mx.flash |
Class | public dynamic class ContainerMovieClip |
Inheritance | ContainerMovieClip ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Subclasses | FlexContentHolder |
A Flash container can only have a single Flex child. However, this child can be a Flex container which allows you to add additional children.
If your Flash container modifies the visual characteristics
of the Flex components contained in it, such as changing the alpha
property,
you must embed the fonts used by the Flex components.
This is the same requirement that you have when using the Dissolve, Fade,
and Rotate effects with Flex components.
The following procedure describes the basic process for creating a Flex component in Flash CS3:
library-path
when you compile
your Flex application.For more information, see the documentation that ships with the Flex/Flash Integration Kit at http://www.adobe.com/go/flex3_cs3_swfkit.
Default MXML Propertycontent
Property | Defined By | ||
---|---|---|---|
![]() | accessibilityProperties : AccessibilityProperties
The current accessibility options for this display object.
| DisplayObject | |
![]() | alpha : Number
Indicates the alpha transparency value of the object specified.
| DisplayObject | |
![]() | automationDelegate : Object
The delegate object that handles the automation-related functionality.
| UIMovieClip | |
![]() | automationName : String
Name that can be used as an identifier for this object.
| UIMovieClip | |
![]() | automationTabularData : Object
[read-only]
An implementation of the IAutomationTabularData interface, which
can be used to retrieve the data.
| UIMovieClip | |
![]() | automationValue : Array
[read-only]
This value generally corresponds to the rendered appearance of the
object and should be usable for correlating the identifier with
the object as it appears visually within the application.
| UIMovieClip | |
![]() | baseline : *
The vertical distance in pixels from the top edge of the content area
to the component's baseline position.
| UIMovieClip | |
![]() | baselinePosition : Number
[read-only]
The y-coordinate of the baseline
of the first line of text of the component.
| UIMovieClip | |
![]() | blendMode : String
A value from the BlendMode class that specifies which blend mode to use.
| DisplayObject | |
![]() | bottom : *
The vertical distance, in pixels, from the lower edge of the component
to the lower edge of its content area.
| UIMovieClip | |
![]() | boundingBoxName : String = "boundingBox"
Name of the object to use as the bounding box.
| UIMovieClip | |
![]() | buttonMode : Boolean
Specifies the button mode of this sprite.
| Sprite | |
![]() | cacheAsBitmap : Boolean
If set to true, Flash Player or Adobe AIR caches an internal bitmap representation of the
display object.
| DisplayObject | |
![]() | cacheHeuristic : Boolean
[write-only]
Used by Flex to suggest bitmap caching for the object.
| UIMovieClip | |
![]() | cachePolicy : String
[read-only]
Specifies the bitmap caching policy for this object.
| UIMovieClip | |
![]() | constructor : Object
A reference to the class object or constructor function for a given object instance.
| Object | |
content : IUIComponent
The Flex content to display inside this container.
| ContainerMovieClip | ||
![]() | contextMenu : NativeMenu
Specifies the context menu associated with this object.
| InteractiveObject | |
![]() | currentFrame : int
[read-only]
Specifies the number of the frame in which the playhead is located in the timeline of
the MovieClip instance.
| MovieClip | |
![]() | currentLabel : String
[read-only]
The current label in which the playhead is located in the timeline of the MovieClip instance.
| MovieClip | |
![]() | currentLabels : Array
[read-only]
Returns an array of FrameLabel objects from the current scene.
| MovieClip | |
![]() | currentScene : Scene
[read-only]
The current scene in which the playhead is located in the timeline of the MovieClip instance.
| MovieClip | |
![]() | currentState : String
The current state of this component.
| UIMovieClip | |
![]() | descriptor : UIComponentDescriptor
Reference to the UIComponentDescriptor, if any, that was used
by the createComponentFromDescriptor() method to create this
UIComponent instance.
| UIMovieClip | |
![]() | document : Object
A reference to the document object associated with this component.
| UIMovieClip | |
![]() | doubleClickEnabled : Boolean
Specifies whether the object receives doubleClick events.
| InteractiveObject | |
![]() | dropTarget : DisplayObject
[read-only]
Specifies the display object over which the sprite is being dragged, or on
which the sprite was dropped.
| Sprite | |
![]() | enabled : Boolean
A Boolean value that indicates whether a movie clip is enabled.
| MovieClip | |
![]() | explicitHeight : Number
The explicitly specified height for the component,
in pixels, as the component's coordinates.
| UIMovieClip | |
![]() | explicitMaxHeight : Number
Number that specifies the maximum height of the component,
in pixels, as the component's coordinates.
| UIMovieClip | |
![]() | explicitMaxWidth : Number
Number that specifies the maximum width of the component,
in pixels, as the component's coordinates.
| UIMovieClip | |
![]() | explicitMinHeight : Number
Number that specifies the minimum height of the component,
in pixels, as the component's coordinates.
| UIMovieClip | |
![]() | explicitMinWidth : Number
Number that specifies the minimum width of the component,
in pixels, as the component's coordinates.
| UIMovieClip | |
![]() | explicitWidth : Number
The explicitly specified width for the component,
in pixels, as the component's coordinates.
| UIMovieClip | |
![]() | filters : Array
An indexed array that contains each filter object currently associated with the display object.
| DisplayObject | |
![]() | focusEnabled : Boolean
A flag that indicates whether the component can receive focus when selected.
| UIMovieClip | |
![]() | focusPane : Sprite
A single Sprite object that is shared among components
and used as an overlay for drawing focus.
| UIMovieClip | |
![]() | focusRect : Object
Specifies whether this object displays a focus rectangle.
| InteractiveObject | |
![]() | framesLoaded : int
[read-only]
The number of frames that are loaded from a streaming SWF file.
| MovieClip | |
![]() | graphics : Graphics
[read-only]
Specifies the Graphics object that belongs to this sprite where vector
drawing commands can occur.
| Sprite | |
![]() | height : Number
The height of this object, in pixels.
| UIMovieClip | |
![]() | hitArea : Sprite
Designates another sprite to serve as the hit area for a sprite.
| Sprite | |
![]() | horizontalCenter : *
The horizontal distance in pixels from the center of the
component's content area to the center of the component.
| UIMovieClip | |
![]() | id : String
ID of the component.
| UIMovieClip | |
![]() | includeInLayout : Boolean
Specifies whether this component is included in the layout of the
parent container.
| UIMovieClip | |
![]() | isPopUp : Boolean
Set to true by the PopUpManager to indicate
that component has been popped up.
| UIMovieClip | |
![]() | left : *
The horizontal distance, in pixels, from the left edge of the component's
content area to the left edge of the component.
| UIMovieClip | |
![]() | loaderInfo : LoaderInfo
[read-only]
Returns a LoaderInfo object containing information about loading the file
to which this display object belongs.
| DisplayObject | |
![]() | mask : DisplayObject
The calling display object is masked by the specified mask object.
| DisplayObject | |
![]() | maxHeight : Number
Number that specifies the maximum height of the component,
in pixels, as the component's coordinates.
| UIMovieClip | |
![]() | maxWidth : Number
Number that specifies the maximum width of the component,
in pixels, as the component's coordinates.
| UIMovieClip | |
![]() | measuredHeight : Number
[read-only]
The measured height of this object.
| UIMovieClip | |
![]() | measuredMinHeight : Number
The default minimum height of the component, in pixels.
| UIMovieClip | |
![]() | measuredMinWidth : Number
The default minimum width of the component, in pixels.
| UIMovieClip | |
![]() | measuredWidth : Number
[read-only]
The measured width of this object.
| UIMovieClip | |
![]() | minHeight : Number
Number that specifies the minimum height of the component,
in pixels, as the component's coordinates.
| UIMovieClip | |
![]() | minWidth : Number
Number that specifies the minimum width of the component,
in pixels, as the component's coordinates.
| UIMovieClip | |
![]() | mouseChildren : Boolean
Determines whether or not the children of the object are mouse enabled.
| DisplayObjectContainer | |
![]() | mouseEnabled : Boolean
Specifies whether this object receives mouse messages.
| InteractiveObject | |
![]() | mouseFocusEnabled : Boolean
[read-only]
A flag that indicates whether the component can receive focus
when selected with the mouse.
| UIMovieClip | |
![]() | mouseX : Number
[read-only]
Indicates the x coordinate of the mouse position, in pixels.
| DisplayObject | |
![]() | mouseY : Number
[read-only]
Indicates the y coordinate of the mouse position, in pixels.
| DisplayObject | |
![]() | name : String
Indicates the instance name of the DisplayObject.
| DisplayObject | |
![]() | numAutomationChildren : int
[read-only]
The number of automation children this container has.
| UIMovieClip | |
![]() | numChildren : int
[read-only]
Returns the number of children of this object.
| DisplayObjectContainer | |
![]() | opaqueBackground : Object
Specifies whether the display object is opaque with a certain background color.
| DisplayObject | |
![]() | owner : DisplayObjectContainer
Typically the parent container of this component.
| UIMovieClip | |
![]() | parent : DisplayObjectContainer
[read-only]
Indicates the DisplayObjectContainer object that contains this display object.
| DisplayObject | |
![]() | parentDocument : Object
[read-only]
The document containing this component.
| UIMovieClip | |
![]() | percentHeight : Number
Number that specifies the height of a component as a
percentage of its parent's size.
| UIMovieClip | |
![]() | percentWidth : Number
Number that specifies the width of a component as a
percentage of its parent's size.
| UIMovieClip | |
![]() | prototype : Object
[static]
A reference to the prototype object of a class or function object.
| Object | |
![]() | right : *
The horizontal distance, in pixels, from the right edge of the component
to the right edge of its content area.
| UIMovieClip | |
![]() | root : DisplayObject
[read-only]
For a display object in a loaded SWF file, the root property is the
top-most display object in the portion of the display list's tree structure represented by that SWF file.
| DisplayObject | |
![]() | rotation : Number
Indicates the rotation of the DisplayObject instance, in degrees, from its original orientation.
| DisplayObject | |
![]() | scale9Grid : Rectangle
The current scaling grid that is in effect.
| DisplayObject | |
![]() | scaleX : Number
Indicates the horizontal scale (percentage) of the object as applied from the registration point.
| DisplayObject | |
![]() | scaleY : Number
Indicates the vertical scale (percentage) of an object as applied from the registration point of the object.
| DisplayObject | |
![]() | scenes : Array
[read-only]
An array of Scene objects, each listing the name, the number of frames,
and the frame labels for a scene in the MovieClip instance.
| MovieClip | |
![]() | scrollRect : Rectangle
The scroll rectangle bounds of the display object.
| DisplayObject | |
![]() | showInAutomationHierarchy : Boolean
A flag that determines if an automation object
shows in the automation hierarchy.
| UIMovieClip | |
![]() | soundTransform : SoundTransform
Controls sound within this sprite.
| Sprite | |
![]() | stage : Stage
[read-only]
The Stage of the display object.
| DisplayObject | |
![]() | systemManager : ISystemManager
A reference to the SystemManager object for this component.
| UIMovieClip | |
![]() | tabChildren : Boolean
Determines whether the children of the object are tab enabled.
| DisplayObjectContainer | |
![]() | tabEnabled : Boolean
Specifies whether this object is in the tab order.
| InteractiveObject | |
![]() | tabIndex : int
Specifies the tab ordering of objects in a SWF file.
| InteractiveObject | |
![]() | textSnapshot : TextSnapshot
[read-only]
Returns a TextSnapshot object for this DisplayObjectContainer instance.
| DisplayObjectContainer | |
![]() | toolTip : String
Text to display in the ToolTip.
| UIMovieClip | |
![]() | top : *
The vertical distance, in pixels, from the top edge of the control's content area
to the top edge of the component.
| UIMovieClip | |
![]() | totalFrames : int
[read-only]
The total number of frames in the MovieClip instance.
| MovieClip | |
![]() | trackAsMenu : Boolean
Indicates whether other display objects that are SimpleButton or MovieClip objects can receive
mouse release events.
| MovieClip | |
![]() | transform : Transform
An object with properties pertaining to a display object's matrix, color transform, and pixel bounds.
| DisplayObject | |
![]() | tweeningProperties : Array
Used by EffectManager.
| UIMovieClip | |
![]() | useHandCursor : Boolean
A Boolean value that indicates whether the pointing hand (hand cursor) appears when the mouse rolls
over a sprite in which the buttonMode property is set to true.
| Sprite | |
![]() | verticalCenter : *
The vertical distance in pixels from the center of the component's content area
to the center of the component.
| UIMovieClip | |
![]() | visible : Boolean
Whether or not the display object is visible.
| DisplayObject | |
![]() | width : Number
The width of this object, in pixels.
| UIMovieClip | |
![]() | x : Number
Indicates the x coordinate of the DisplayObject instance relative to the local coordinates of
the parent DisplayObjectContainer.
| DisplayObject | |
![]() | y : Number
Indicates the y coordinate of the DisplayObject instance relative to the local coordinates of
the parent DisplayObjectContainer.
| DisplayObject |
Method | Defined By | ||
---|---|---|---|
Constructor
| ContainerMovieClip | ||
![]() |
Adds a child DisplayObject instance to this DisplayObjectContainer instance.
| DisplayObjectContainer | |
![]() |
Adds a child DisplayObject instance to this DisplayObjectContainer
instance.
| DisplayObjectContainer | |
![]() |
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener
receives notification of an event.
| EventDispatcher | |
![]() |
Indicates whether the security restrictions
would cause any display objects to be omitted from the list returned by calling
the DisplayObjectContainer.getObjectsUnderPoint() method
with the specified point point.
| DisplayObjectContainer | |
![]() |
Determines whether the specified display object is a child of the DisplayObjectContainer instance or
the instance itself.
| DisplayObjectContainer | |
![]() |
Returns a set of properties that identify the child within
this container.
| UIMovieClip | |
![]() |
Creates an id reference to this IUIComponent object
on its parent document object.
| UIMovieClip | |
![]() |
Deletes the id reference to this IUIComponent object
on its parent document object.
| UIMovieClip | |
![]() |
Dispatches an event into the event flow.
| EventDispatcher | |
![]() |
Called by the FocusManager when the component receives focus.
| UIMovieClip | |
![]() |
Executes the data bindings into this UIComponent object.
| UIMovieClip | |
![]() |
Provides the automation object at the specified index.
| UIMovieClip | |
![]() |
Returns a rectangle that defines the area of the display object relative to the coordinate system
of the targetCoordinateSpace object.
| DisplayObject | |
![]() |
Returns the child display object instance that exists at the specified index.
| DisplayObjectContainer | |
![]() |
Returns the child display object that exists with the specified name.
| DisplayObjectContainer | |
![]() |
Returns the index position of a child DisplayObject instance.
| DisplayObjectContainer | |
![]() |
Returns the specified constraint value.
| UIMovieClip | |
![]() |
A convenience method for determining whether to use the
explicit or measured height
| UIMovieClip | |
![]() |
A convenience method for determining whether to use the
explicit or measured width
| UIMovieClip | |
![]() |
Returns an array of objects that lie under the specified point and are children
(or grandchildren, and so on) of this DisplayObjectContainer instance.
| DisplayObjectContainer | |
![]() |
Returns a rectangle that defines the boundary of the display object,
based on the coordinate system defined by the targetCoordinateSpace
parameter, excluding any strokes on shapes.
| DisplayObject | |
![]() |
Converts the point object from the Stage (global) coordinates
to the display object's (local) coordinates.
| DisplayObject | |
![]() |
Starts playing the SWF file at the specified frame.
| MovieClip | |
![]() |
Brings the playhead to the specified frame of the movie clip and stops it there.
| MovieClip | |
![]() |
Checks whether the EventDispatcher object has any listeners registered for a specific type
of event.
| EventDispatcher | |
![]() |
Indicates whether an object has a specified property defined.
| Object | |
![]() |
Evaluates the display object to see if it overlaps or intersects with the
obj display object.
| DisplayObject | |
![]() |
Evaluates the display object to see if it overlaps or intersects with the
point specified by the x and y parameters.
| DisplayObject | |
![]() |
Initialize the object.
| UIMovieClip | |
![]() |
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter.
| Object | |
![]() |
Converts the point object from the display object's (local) coordinates to the
Stage (global) coordinates.
| DisplayObject | |
![]() |
Moves this object to the specified x and y coordinates.
| UIMovieClip | |
![]() |
Sends the playhead to the next frame and stops it.
| MovieClip | |
![]() |
Moves the playhead to the next scene of the MovieClip instance.
| MovieClip | |
![]() |
Returns true if the chain of owner properties
points from child to this UIComponent.
| UIMovieClip | |
![]() |
Called by Flex when a UIComponent object is added to or removed from a parent.
| UIMovieClip | |
![]() |
Moves the playhead in the timeline of the movie clip.
| MovieClip | |
![]() |
Sends the playhead to the previous frame and stops it.
| MovieClip | |
![]() |
Moves the playhead to the previous scene of the MovieClip instance.
| MovieClip | |
![]() |
Indicates whether the specified property exists and is enumerable.
| Object | |
![]() |
For each effect event, register the EffectManager
as one of the event listeners.
| UIMovieClip | |
![]() |
Removes the specified child DisplayObject instance from the child list of the DisplayObjectContainer instance.
| DisplayObjectContainer | |
![]() |
Removes a child DisplayObject from the specified index position in the child list of
the DisplayObjectContainer.
| DisplayObjectContainer | |
![]() |
Removes a listener from the EventDispatcher object.
| EventDispatcher | |
![]() |
Replays the specified event.
| UIMovieClip | |
![]() |
Resolves a child by using the id provided.
| UIMovieClip | |
![]() |
Sets the actual size of this object.
| UIMovieClip | |
![]() |
Changes the position of an existing child in the display object container.
| DisplayObjectContainer | |
![]() |
Sets the specified constraint value.
| UIMovieClip | |
![]() |
Called by the FocusManager when the component receives focus.
| UIMovieClip | |
![]() |
Sets the availability of a dynamic property for loop operations.
| Object | |
![]() |
Called when the visible property changes.
| UIMovieClip | |
![]() |
Lets the user drag the specified sprite.
| Sprite | |
![]() |
Stops the playhead in the movie clip.
| MovieClip | |
![]() |
Ends the startDrag() method.
| Sprite | |
![]() |
Swaps the z-order (front-to-back order) of the two specified child objects.
| DisplayObjectContainer | |
![]() |
Swaps the z-order (front-to-back order) of the child objects at the two specified index positions in the
child list.
| DisplayObjectContainer | |
![]() |
Returns the string representation of the specified object.
| Object | |
![]() |
Returns the primitive value of the specified object.
| Object | |
![]() |
Checks whether an event listener is registered with this EventDispatcher object or any of
its ancestors for the specified event type.
| EventDispatcher |
content | property |
content:IUIComponent
[read-write] The Flex content to display inside this container.
Typically, to add a child to a container in ActionScript,
you use the Container.addChild()
or Container.addChildAt()
method.
However, to add a child to the ContainerMovieClip.content
property
of a Flash container, you do not use the addChild()
or addChildAt()
method.
Instead, you assign the child directly to the content property.
public function get content():IUIComponent
public function set content(value:IUIComponent):void
ContainerMovieClip.content
property.
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:myComps="*"> <mx:Script> <![CDATA[ import mx.containers.HBox; import mx.controls.Image; private function init():void { // Define the Image control. var image1:Image = new Image(); image1.source = "../assets/logowithtext.jpg"; image1.percentWidth = 80; image1.percentHeight = 80; // Define the HBox container. var hb1:HBox = new HBox(); hb1.percentWidth = 100; hb1.percentHeight = 100; hb1.setStyle('borderStyle', 'solid'); hb1.addChild(image1); // Assign the HBox container to the // ContainerMovieClip.content property.. pFrame.content = hb1; } ]]> </mx:Script> <myComps:MyPictureFrameContainer id="pFrame" initialize="init();"/> </mx:Application>
ContainerMovieClip | () | Constructor |
public function ContainerMovieClip()
Constructor