Package | mx.flash |
Class | public dynamic class ContainerMovieClip |
Inheritance | ContainerMovieClip UIMovieClip MovieClip Sprite DisplayObjectContainer InteractiveObject DisplayObject EventDispatcher Object |
Implements | IVisualElementContainer |
Language Version: | ActionScript 3.0 |
Product Version: | Flex 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
A Flash container can only have a single Flex IUIComponent 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 Professional:
- Install the Adobe Flash Workflow Integration Kit.
- Create symbols for your dynamic assets in the FLA file.
- Run Commands > Make Flex Container to convert your symbol to a subclass of the ContainerMovieClip class, to configure the Flash Professional publishing settings for use with Flex, and add a new symbol named FlexContentHolder to the Library. This symbol defines the content area of the container in which you can place child Flex components..
- Publish your FLA file as a SWC file.
- Reference the class name of your symbols in your Flex application as you would any class.
- Include the SWC file in your
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 | ||
---|---|---|---|
accessibilityImplementation : AccessibilityImplementation
The current accessibility implementation (AccessibilityImplementation)
for this InteractiveObject instance. | InteractiveObject | ||
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 | ||
automationEnabled : Boolean [read-only]
True if this component is enabled for automation, false
otherwise. | UIMovieClip | ||
automationName : String
Name that can be used as an identifier for this object. | UIMovieClip | ||
automationOwner : DisplayObjectContainer [read-only]
The owner of this component for automation purposes. | UIMovieClip | ||
automationParent : DisplayObjectContainer [read-only]
The parent of this component for automation purposes. | 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 | ||
automationVisible : Boolean [read-only]
True if this component is visible for automation, false
otherwise. | UIMovieClip | ||
autoUpdateCurrentState : Boolean
Whether we should actively watch changes to the label of the flash object. | UIMovieClip | ||
autoUpdateMeasuredSize : Boolean
Whether we should actively watch changes to the size of the flash object. | UIMovieClip | ||
baseline : Object
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 | ||
blendShader : Shader [write-only]
Sets a shader that is used for blending the foreground and background. | DisplayObject | ||
bottom : Object
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 runtimes cache an internal bitmap representation of the
display object. | DisplayObject | ||
cacheAsBitmapMatrix : Matrix
If non-null, this Matrix object defines how a display object is rendered when
cacheAsBitmap is set to true. | 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 | ||
currentFrameLabel : String [read-only]
The label at the current frame 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 | ||
depth : Number
Determines the order in which items inside of containers
are rendered. | UIMovieClip | ||
descriptor : UIComponentDescriptor
Reference to the UIComponentDescriptor, if any, that was used
by the createComponentFromDescriptor() method to create this
UIComponent instance. | UIMovieClip | ||
designLayer : DesignLayer
Specifies the optional DesignLayer instance associated with this visual
element. | 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 | ||
hasFocusableChildren : Boolean
A flag that indicates whether child objects can receive focus. | UIMovieClip | ||
hasLayoutMatrix3D : Boolean [read-only]
Contains true if the element has 3D Matrix. | UIMovieClip | ||
height : Number [override]
The height of this object, in pixels. | UIMovieClip | ||
hitArea : Sprite
Designates another sprite to serve as the hit area for a sprite. | Sprite | ||
horizontalCenter : Object
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 | ||
is3D : Boolean [read-only]
Contains true when the element is in 3D. | UIMovieClip | ||
isPlaying : Boolean [read-only]
A Boolean value that indicates whether a movie clip is curently playing. | MovieClip | ||
isPopUp : Boolean
Set to true by the PopUpManager to indicate
that component has been popped up. | UIMovieClip | ||
layoutDirection : String
Specifies the desired layout direction for an element: one of LayoutDirection.LTR
(left to right), LayoutDirection.RTL (right to left), or null (inherit). | UIMovieClip | ||
left : Object
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 | ||
maintainProjectionCenter : Boolean
When true, the component will keep its projection matrix centered on the
middle of its bounding box. | UIMovieClip | ||
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 | ||
metaData : Object
Obtains the meta data object of the DisplayObject instance if meta data was stored alongside the
the instance of this DisplayObject in the SWF file through a PlaceObject4 tag. | DisplayObject | ||
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 | ||
moduleFactory : IFlexModuleFactory
A module factory is used as context for using embeded fonts and for
finding the style manager that controls the styles for this
component. | UIMovieClip | ||
mouseChildren : Boolean
Determines whether or not the children of the object are mouse, or user input device, enabled. | DisplayObjectContainer | ||
mouseEnabled : Boolean
Specifies whether this object receives mouse, or other user input, 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 or user input device position, in pixels. | DisplayObject | ||
mouseY : Number [read-only]
Indicates the y coordinate of the mouse or user input device position, in pixels. | DisplayObject | ||
name : String
Indicates the instance name of the DisplayObject. | DisplayObject | ||
needsSoftKeyboard : Boolean
Specifies whether a virtual keyboard (an on-screen, software keyboard) should display
when this InteractiveObject instance receives focus. | InteractiveObject | ||
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 | ||
numElements : int [read-only]
Returns 1 if there is a viewport, 0 otherwise. | ContainerMovieClip | ||
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 | ||
postLayoutTransformOffsets : mx.geom:TransformOffsets
Defines a set of adjustments that can be applied to the component's transform in a way that is
invisible to the component's parent's layout. | UIMovieClip | ||
right : Object
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 [override]
Indicates the rotation of the DisplayObject instance, in degrees, from its original orientation. | UIMovieClip | ||
rotationX : Number [override]
Indicates the x-axis rotation of the DisplayObject instance, in degrees,
from its original orientation relative to the 3D parent container. | UIMovieClip | ||
rotationY : Number [override]
Indicates the y-axis rotation of the DisplayObject instance, in degrees,
from its original orientation relative to the 3D parent container. | UIMovieClip | ||
rotationZ : Number [override]
Indicates the z-axis rotation of the DisplayObject instance, in degrees, from its original orientation relative to the 3D parent container. | UIMovieClip | ||
scale9Grid : Rectangle
The current scaling grid that is in effect. | DisplayObject | ||
scaleContentWhenResized : Boolean
Whether the scale of the container due to sizing
affects the scale of the flex content. | ContainerMovieClip | ||
scaleX : Number [override]
Number that specifies the horizontal scaling factor. | UIMovieClip | ||
scaleY : Number [override]
Number that specifies the vertical scaling factor. | UIMovieClip | ||
scaleZ : Number [override]
Number that specifies the scaling factor along the z axis. | UIMovieClip | ||
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 | ||
softKeyboard : String
Controls the appearance of the soft keyboard. | InteractiveObject | ||
softKeyboardInputAreaOfInterest : Rectangle
Defines the area that should remain on-screen when a soft keyboard is displayed (not available on iOS). | InteractiveObject | ||
soundTransform : flash.media: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 | ||
tabFocusEnabled : Boolean
A flag that indicates whether child objects can receive focus
This is similar to the tabEnabled property
used by the Flash Player.
This is usually true for components that
handle keyboard input, but some components in controlbars
have them set to false because they should not steal
focus from another component like an editor. | UIMovieClip | ||
tabIndex : int
Specifies the tab ordering of objects in a SWF file. | InteractiveObject | ||
textSnapshot : flash.text:TextSnapshot [read-only]
Returns a TextSnapshot object for this DisplayObjectContainer instance. | DisplayObjectContainer | ||
toolTip : String
Text to display in the ToolTip. | UIMovieClip | ||
top : Object
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 or other user input release events. | MovieClip | ||
transform : flash.geom:Transform
An object with properties pertaining to a display object's matrix, color transform, and pixel bounds. | DisplayObject | ||
transformX : Number
Sets the x coordinate for the transform center of the component. | UIMovieClip | ||
transformY : Number
Sets the y coordinate for the transform center of the component. | UIMovieClip | ||
transformZ : Number
Sets the z coordinate for the transform center of the component. | UIMovieClip | ||
tweeningProperties : Array
Used by EffectManager. | UIMovieClip | ||
useHandCursor : Boolean
A Boolean value that indicates whether the pointing hand (hand cursor) appears when the pointer rolls
over a sprite in which the buttonMode property is set to true. | Sprite | ||
verticalCenter : Object
The vertical distance in pixels from the center of the component's content area
to the center of the component. | UIMovieClip | ||
visible : Boolean [override]
Whether or not the display object is visible. | UIMovieClip | ||
width : Number [override]
The width of this object, in pixels. | UIMovieClip | ||
x : Number [override]
Number that specifies the component's horizontal position,
in pixels, within its parent container. | UIMovieClip | ||
y : Number [override]
Number that specifies the component's vertical position,
in pixels, within its parent container. | UIMovieClip | ||
z : Number [override]
Indicates the z coordinate position along the z-axis of the DisplayObject
instance relative to the 3D parent container. | UIMovieClip |
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 | ||
Adds a visual element to this container. | ContainerMovieClip | ||
Adds a visual element to this container. | ContainerMovieClip | ||
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 | ||
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 | ||
Provides the automation object list . | UIMovieClip | ||
Returns a rectangle that defines the area of the display object relative to the coordinate system
of the targetCoordinateSpace object. | DisplayObject | ||
Returns the x coordinate of the element's bounds at the specified element size. | UIMovieClip | ||
Returns the y coordinate of the element's bounds at the specified element size. | UIMovieClip | ||
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 | ||
Returns the viewport if there is a viewport and the
index passed in is 0. | ContainerMovieClip | ||
Returns the 0 if the element passed in is the viewport. | ContainerMovieClip | ||
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 the element's layout height. | UIMovieClip | ||
Returns the element's layout width. | UIMovieClip | ||
Returns the x coordinate that the element uses to draw on screen. | UIMovieClip | ||
Returns the y coordinate that the element uses to draw on screen. | UIMovieClip | ||
Returns the transform matrix that is used to calculate the component's
layout relative to its siblings. | UIMovieClip | ||
Returns the layout transform Matrix3D for this element. | UIMovieClip | ||
Returns the element's maximum height. | UIMovieClip | ||
Returns the element's maximum width. | UIMovieClip | ||
Returns the element's minimum height. | UIMovieClip | ||
Returns the element's minimum 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 the element's preferred height. | UIMovieClip | ||
Returns the element's preferred width. | UIMovieClip | ||
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 | ||
Converts a two-dimensional point from the Stage (global) coordinates to a
three-dimensional 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 bounding box of the display object to see if it overlaps or intersects with the
bounding box of 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 | ||
An element must call this method when its layoutDirection changes or
when its parent's layoutDirection changes. | UIMovieClip | ||
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | ||
Converts a three-dimensional point of the three-dimensional display
object's (local) coordinates to a two-dimensional point in the Stage (global) coordinates. | DisplayObject | ||
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 all visual elements from the container. | ContainerMovieClip | ||
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 all child DisplayObject instances from the child list of the DisplayObjectContainer instance. | DisplayObjectContainer | ||
Removes the specified visual element from the child list of
this container. | ContainerMovieClip | ||
Removes a visual element from the specified index position
in the container. | ContainerMovieClip | ||
Removes a listener from the EventDispatcher object. | EventDispatcher | ||
Replays the specified event. | UIMovieClip | ||
Raises a virtual keyboard. | InteractiveObject | ||
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 | ||
Changes the position of an existing visual element in the visual container. | ContainerMovieClip | ||
Called by the FocusManager when the component receives focus. | UIMovieClip | ||
Sets the coordinates that the element uses to draw on screen. | UIMovieClip | ||
Sets the layout size of the element. | UIMovieClip | ||
Sets the transform Matrix that is used to calculate the component's layout
size and position relative to its siblings. | UIMovieClip | ||
Sets the transform Matrix3D that is used to calculate the component's layout
size and position relative to its siblings. | 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 | ||
Lets the user drag the specified sprite on a touch-enabled device. | Sprite | ||
Stops the playhead in the movie clip. | MovieClip | ||
Recursively stops the timeline execution of all MovieClips rooted at this object. | DisplayObjectContainer | ||
Ends the startDrag() method. | Sprite | ||
Ends the startTouchDrag() method, for use with touch-enabled devices. | 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 | ||
Swaps the index of the two specified visual elements. | ContainerMovieClip | ||
Swaps the visual elements at the two specified index
positions in the container. | ContainerMovieClip | ||
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | ||
Returns the string representation of the specified object. | Object | ||
transformAround(transformCenter:Vector3D, scale:Vector3D = null, rotation:Vector3D = null, translation:Vector3D = null, postLayoutScale:Vector3D = null, postLayoutRotation:Vector3D = null, postLayoutTranslation:Vector3D = null, invalidateLayout:Boolean = true):void
A utility method to update the rotation, scale, and translation of the
transform while keeping a particular point, specified in the component's
own coordinate space, fixed in the parent's coordinate space. | UIMovieClip | ||
A utility method to transform a point specified in the local
coordinates of this object to its location in the object's parent's
coordinates. | UIMovieClip | ||
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
Language Version: | ActionScript 3.0 |
Product Version: | Flex 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
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.
The following example assigns a container to the 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>
Implementation
public function get content():IUIComponent
public function set content(value:IUIComponent):void
numElements | property |
scaleContentWhenResized | property |
scaleContentWhenResized:Boolean
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Whether the scale of the container due to sizing affects the scale of the flex content.
When Flash components are resized, they scale up or down to their new size. However, this means their children are also scaled up or down. By setting this flag to false, the children are inversely scaled when the container is resized.
Note: When the container is scaled direclty (through scaleX or scaleY), the content will also be scaled accordingly. This only affects scaling of the container due to sizing.
The default value is false.
Implementation
public function get scaleContentWhenResized():Boolean
public function set scaleContentWhenResized(value:Boolean):void
ContainerMovieClip | () | Constructor |
public function ContainerMovieClip()
Language Version: | ActionScript 3.0 |
Product Version: | Flex 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Constructor
addElement | () | method |
public function addElement(element:IVisualElement):IVisualElement
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Adds a visual element to this container.
The element is added after all other elements
and appears top of all other elements.
To add a visual element to a specific index position, use
the addElementAt()
method.
If you add a visual element that already has a different container as a parent, the element is removed from the other container.
Parameters
element:IVisualElement — The visual element to add as a child of this container.
|
IVisualElement — The element that was added.
|
addElementAt | () | method |
public function addElementAt(element:IVisualElement, index:int):IVisualElement
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Adds a visual element to this container. The element is added at the index position specified. An index of 0 represents the first element in the display list.
If you add a visual element that already has a different container as a parent, the element is removed from the other container.
Parameters
element:IVisualElement — The element to add as a child of this visual container.
| |
index:int — The index position to which the element is added. If
you specify a currently occupied index position, the child
that exists at that position and all higher positions are moved
up one position in the child list.
|
IVisualElement — The element that was added.
|
getElementAt | () | method |
public function getElementAt(index:int):IVisualElement
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Returns the viewport if there is a viewport and the index passed in is 0. Otherwise, it throws a RangeError.
Parameters
index:int — The index of the element to retrieve.
|
IVisualElement — The element at the specified index.
|
Throws
RangeError — If the index position does not exist in the child list.
|
getElementIndex | () | method |
public function getElementIndex(element:IVisualElement):int
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Returns the 0 if the element passed in is the viewport. Otherwise, it throws an ArgumentError.
Parameters
element:IVisualElement — The element to identify.
|
int — The index position of the element to identify.
|
Throws
ArgumentError — If the element is not a child of this object.
|
removeAllElements | () | method |
public function removeAllElements():void
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Removes all visual elements from the container.
removeElement | () | method |
public function removeElement(element:IVisualElement):IVisualElement
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Removes the specified visual element from the child list of this container. The index positions of any elements above the element in this visual container are decreased by 1.
Parameters
element:IVisualElement — The element to be removed from the container.
|
IVisualElement — The element removed.
|
removeElementAt | () | method |
public function removeElementAt(index:int):IVisualElement
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Removes a visual element from the specified index position in the container. The index positions of any elements above the element in this visual container are decreased by 1.
Parameters
index:int — The index of the element to remove.
|
IVisualElement — The element removed.
|
setElementIndex | () | method |
public function setElementIndex(element:IVisualElement, index:int):void
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Changes the position of an existing visual element in the visual container.
When you call the setElementIndex()
method and specify an
index position that is already occupied, the only positions
that change are those in between the elements's former and new position.
All others stay the same.
If a visual element is moved to an index lower than its current index, the index of all elements in between increases by 1. If an element is moved to an index higher than its current index, the index of all elements in between decreases by 1.
Parameters
element:IVisualElement — The element for which you want to change the index number.
| |
index:int — The resulting index number for the element.
|
swapElements | () | method |
public function swapElements(element1:IVisualElement, element2:IVisualElement):void
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Swaps the index of the two specified visual elements. All other elements remain in the same index position.
Parameters
element1:IVisualElement — The first visual element.
| |
element2:IVisualElement — The second visual element.
|
swapElementsAt | () | method |
public function swapElementsAt(index1:int, index2:int):void
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Swaps the visual elements at the two specified index positions in the container. All other visual elements remain in the same index position.
Parameters
index1:int — The index of the first element.
| |
index2:int — The index of the second element.
|
Thu Dec 6 2018, 01:12 PM -08:00