mx.flash
public dynamic class ContainerMovieClip
继承ContainerMovieClip Inheritance UIMovieClip Inheritance MovieClip Inheritance Sprite Inheritance DisplayObjectContainer Inheritance InteractiveObject Inheritance DisplayObject Inheritance EventDispatcher Inheritance Object
子类 FlexContentHolder

在 Adobe Flash CS3 Professional 中创建以便在 Flex 中使用的容器组件是 mx.flash.ContainerMovieClip 类的子类。您可以将 ContainerMovieClip 的子类用作 Flex 容器,它可以保存子项、响应事件、定义视图状态和转换,还可以像所有 Flex 组件一样使用效果。

一个 Flash 容器只能具有一个 Flex 子项。但是,这个子项可以是允许添加其它子项的 Flex 容器。

如果 Flash 容器要修改其中包含的 Flex 组件的可视特征(如更改 alpha 属性),您必须嵌入 Flex 组件所用的字体。对 Flex 组件应用 Dissolve、Fade 和 Rotate 效果时,也需要同样的要求。

以下过程描述了在 Flash CS3 中创建 Flex 组件的基本流程:

  1. 安装 Adobe Flash 工作流程集成工具包。
  2. 在 FLA 文件中为动态资源创建符号。
  3. 运行“命令”>“生成 Flex 容器”将符号转换为 ContainerMovieClip 类的子类,配置 Flash CS3 发布设置以使用 Flex,并向库中添加名为 FlexContentHolder 的新符号。此符号定义容器的内容区域,您可以在此区域中放置 Flex 子组件。
  4. 将 FLA 文件发布为 SWC 文件。
  5. 像使用其它类一样,在 Flex 应用程序中引用符号的类名称。
  6. 编译 Flex 应用程序时,在 library-path 中包括 SWC 文件。

有关详细信息,请参阅随 Flex/Flash 集成工具包提供的文档,网址为 http://www.adobe.com/go/flex3_cs3_swfkit

默认 MXML 属性content



公共属性
 属性定义方
 InheritedaccessibilityProperties : AccessibilityProperties
此显示对象的当前辅助功能选项。
DisplayObject
 Inheritedalpha : Number
指示指定对象的 Alpha 透明度值。
DisplayObject
 InheritedautomationDelegate : Object
处理自动化相关功能的委托对象。
UIMovieClip
 InheritedautomationName : String
可用作此对象的标识符的名称。
UIMovieClip
 InheritedautomationTabularData : Object
[只读 (read-only)] IAutomationTabularData 接口的实现,可用于检索数据。
UIMovieClip
 InheritedautomationValue : Array
[只读 (read-only)] 此值通常对应于对象的经渲染的外观,当对象在应用中以可视方式显示时,此值使标识符与该对象相关联。
UIMovieClip
 Inheritedbaseline : *
从内容区域顶边到组件基线位置的垂直距离(以像素为单位)。
UIMovieClip
 InheritedbaselinePosition : Number
[只读 (read-only)] 组件第一行文本的基线的 y 坐标。
UIMovieClip
 InheritedblendMode : String
BlendMode 类中的一个值,用于指定要使用的混合模式。
DisplayObject
 InheritedblendShader : Shader
[只写] 设置用于混合前景和背景的着色器。
DisplayObject
 Inheritedbottom : *
从组件底边到其内容区域底边之间的垂直距离(以像素为单位)。
UIMovieClip
 InheritedboundingBoxName : String = "boundingBox"
用作边框的对象的名称。
UIMovieClip
 InheritedbuttonMode : Boolean
指定此 sprite 的按钮模式。
Sprite
 InheritedcacheAsBitmap : Boolean
如果设置为 true,则 Flash Player 或 Adobe AIR 将缓存显示对象的内部位图表示形式。
DisplayObject
 InheritedcacheHeuristic : Boolean
[只写] 供 Flex 使用,表示建议为对象实施位图缓存。
UIMovieClip
 InheritedcachePolicy : String
[只读 (read-only)] 指定此对象的位图缓存策略。
UIMovieClip
 Inheritedconstructor : Object
对类对象或给定对象实例的构造函数的引用。
Object
  content : IUIComponent
要在此容器内部显示的 Flex 内容。
ContainerMovieClip
 InheritedcontextMenu : NativeMenu
指定与此对象相关联的上下文菜单。
InteractiveObject
 InheritedcurrentFrame : int
[只读 (read-only)] 指定播放头在 MovieClip 实例的时间轴中所处的帧的编号。
MovieClip
 InheritedcurrentFrameLabel : String
[只读 (read-only)] MovieClip 实例的时间轴中当前帧上的标签。
MovieClip
 InheritedcurrentLabel : String
[只读 (read-only)] 在 MovieClip 实例的时间轴中播放头所在的当前标签。
MovieClip
 InheritedcurrentLabels : Array
[只读 (read-only)] 返回由当前场景的 FrameLabel 对象组成的数组。
MovieClip
 InheritedcurrentScene : Scene
[只读 (read-only)] 在 MovieClip 实例的时间轴中播放头所在的当前场景。
MovieClip
 InheritedcurrentState : String
此组件的当前状态。
UIMovieClip
 Inheriteddescriptor : UIComponentDescriptor
引用 UIComponentDescriptor(如果有),过去曾通过 createComponentFromDescriptor() 方法使用它来创建此 UIComponent 实例。
UIMovieClip
 Inheriteddocument : Object
对与此组件关联的文档对象的引用。
UIMovieClip
 InheriteddoubleClickEnabled : Boolean
指定此对象是否接收 doubleClick 事件。
InteractiveObject
 InheriteddropTarget : DisplayObject
[只读 (read-only)] 指定拖动 sprite 时经过的显示对象,或放置 sprite 的显示对象。
Sprite
 Inheritedenabled : Boolean
一个布尔值,指示影片剪辑是否处于活动状态。
MovieClip
 InheritedexplicitHeight : Number
在组件坐标中显式指定的组件高度(以像素为单位)。
UIMovieClip
 InheritedexplicitMaxHeight : Number
在组件坐标中指定组件最大高度的数字(以像素为单位)。
UIMovieClip
 InheritedexplicitMaxWidth : Number
在组件坐标中指定组件最大宽度的数字(以像素为单位)。
UIMovieClip
 InheritedexplicitMinHeight : Number
在组件坐标中指定组件最小高度的数字(以像素为单位)。
UIMovieClip
 InheritedexplicitMinWidth : Number
在组件坐标中指定组件最小宽度的数字(以像素为单位)。
UIMovieClip
 InheritedexplicitWidth : Number
在组件坐标中显式指定的组件宽度(以像素为单位)。
UIMovieClip
 Inheritedfilters : Array
包含当前与显示对象关联的每个滤镜对象的索引数组。
DisplayObject
 InheritedfocusEnabled : Boolean
一个标志,用于指示组件处于选中状态时是否可以获得焦点。
UIMovieClip
 InheritedfocusPane : Sprite
在组件中共享并用作绘图焦点叠加层的单个 Sprite 对象。
UIMovieClip
 InheritedfocusRect : Object
指定此对象是否显示焦点矩形。
InteractiveObject
 InheritedframesLoaded : int
[只读 (read-only)] 从流式 SWF 文件加载的帧数。
MovieClip
 Inheritedgraphics : Graphics
[只读 (read-only)] 指定属于此 sprite 的 Graphics 对象,在此 sprite 中可执行矢量绘画命令。
Sprite
 Inheritedheight : Number
此对象的高度(以像素为单位)。
UIMovieClip
 InheritedhitArea : Sprite
指定一个 sprite 用作另一个 sprite 的点击区域。
Sprite
 InheritedhorizontalCenter : *
从组件内容区域的中心到组件中心的水平距离(以像素为单位)。
UIMovieClip
 Inheritedid : String
组件 ID。
UIMovieClip
 InheritedincludeInLayout : Boolean
指定此组件是否包含在父容器的布局中。
UIMovieClip
 InheritedisPopUp : Boolean
PopUpManager 将其设置为 true 以指示已弹出该组件。
UIMovieClip
 Inheritedleft : *
从组件内容区域的左边到组件左边之间的水平距离(以像素为单位)。
UIMovieClip
 InheritedloaderInfo : LoaderInfo
[只读 (read-only)] 返回一个 LoaderInfo 对象,其中包含加载此显示对象所属的文件的相关信息。
DisplayObject
 Inheritedmask : DisplayObject
调用显示对象被指定的 mask 对象遮罩。
DisplayObject
 InheritedmaxHeight : Number
在组件坐标中指定组件最大高度的数字(以像素为单位)。
UIMovieClip
 InheritedmaxWidth : Number
在组件坐标中指定组件最大宽度的数字(以像素为单位)。
UIMovieClip
 InheritedmeasuredHeight : Number
[只读 (read-only)] 此对象的测量高度。
UIMovieClip
 InheritedmeasuredMinHeight : Number
组件的默认最小高度(以像素为单位)。
UIMovieClip
 InheritedmeasuredMinWidth : Number
组件的默认最小宽度(以像素为单位)。
UIMovieClip
 InheritedmeasuredWidth : Number
[只读 (read-only)] 此对象的测量宽度。
UIMovieClip
 InheritedminHeight : Number
在组件坐标中指定组件最小高度的数字(以像素为单位)。
UIMovieClip
 InheritedminWidth : Number
在组件坐标中指定组件最小宽度的数字(以像素为单位)。
UIMovieClip
 InheritedmouseChildren : Boolean
确定对象的子项是否支持鼠标。
DisplayObjectContainer
 InheritedmouseEnabled : Boolean
指定此对象是否接收鼠标消息。
InteractiveObject
 InheritedmouseFocusEnabled : Boolean
[只读 (read-only)] 一个标志,用于当使用鼠标选中组件时组件是否可以获得焦点。
UIMovieClip
 InheritedmouseX : Number
[只读 (read-only)] 指示鼠标位置的 x 坐标,以像素为单位。
DisplayObject
 InheritedmouseY : Number
[只读 (read-only)] 指示鼠标位置的 y 坐标,以像素为单位。
DisplayObject
 Inheritedname : String
指示 DisplayObject 的实例名称。
DisplayObject
 InheritednumAutomationChildren : int
[只读 (read-only)] 此容器包含的自动化子项数。
UIMovieClip
 InheritednumChildren : int
[只读 (read-only)] 返回此对象的子项数目。
DisplayObjectContainer
 InheritedopaqueBackground : Object
指定显示对象是否由于具有某种背景颜色而不透明。
DisplayObject
 Inheritedowner : DisplayObjectContainer
通常为此组件的父容器。
UIMovieClip
 Inheritedparent : DisplayObjectContainer
[只读 (read-only)] 指示包含此显示对象的 DisplayObjectContainer 对象。
DisplayObject
 InheritedparentDocument : Object
[只读 (read-only)] 包含此组件的文档。
UIMovieClip
 InheritedpercentHeight : Number
以组件父项大小百分比的方式指定组件高度的数字。
UIMovieClip
 InheritedpercentWidth : Number
以组件父项大小百分比形式指定其宽度的数字。
UIMovieClip
 Inheritedprototype : Object
[静态] 对类或函数对象的原型对象的引用。
Object
 Inheritedright : *
从组件右边到其内容区域右边之间的水平距离(以像素为单位)。
UIMovieClip
 Inheritedroot : DisplayObject
[只读 (read-only)] 对于加载的 SWF 文件中的显示对象,root 属性是此 SWF 文件所表示的显示列表树结构部分中的顶级显示对象。
DisplayObject
 Inheritedrotation : Number
指示 DisplayObject 实例距其原始方向的旋转程度,以度为单位。
DisplayObject
 InheritedrotationX : Number
指示 DisplayObject 实例相对于 3D 父容器距离其原始方向的 x 轴旋转(以度为单位)。
DisplayObject
 InheritedrotationY : Number
指示 DisplayObject 实例相对于 3D 父容器距离其原始方向的 y 轴旋转(以度为单位)。
DisplayObject
 InheritedrotationZ : Number
指示 DisplayObject 实例相对于 3D 父容器距离其原始方向的 z 轴旋转(以度为单位)。
DisplayObject
 Inheritedscale9Grid : Rectangle
当前有效的缩放网格。
DisplayObject
 InheritedscaleX : Number
指示从注册点开始应用的对象的水平缩放比例(百分比)。
DisplayObject
 InheritedscaleY : Number
指示从对象注册点开始应用的对象的垂直缩放比例(百分比)。
DisplayObject
 InheritedscaleZ : Number
指示从对象的注册点开始应用的对象的深度缩放比例(百分比)。
DisplayObject
 Inheritedscenes : Array
[只读 (read-only)] 一个由 Scene 对象组成的数组,每个对象都列出了 MovieClip 实例中场景的名称、帧数和帧标签。
MovieClip
 InheritedscrollRect : Rectangle
显示对象的滚动矩形范围。
DisplayObject
 InheritedshowInAutomationHierarchy : Boolean
用于确定自动化对象是否显示在自动化层次中的标志。
UIMovieClip
 InheritedsoundTransform : SoundTransform
控制此 sprite 中的声音。
Sprite
 Inheritedstage : Stage
[只读 (read-only)] 显示对象的舞台。
DisplayObject
 InheritedsystemManager : ISystemManager
对此组件的 SystemManager 对象的引用。
UIMovieClip
 InheritedtabChildren : Boolean
确定对象的子项是否支持 Tab 键。
DisplayObjectContainer
 InheritedtabEnabled : Boolean
指定此对象是否遵循 Tab 键顺序。
InteractiveObject
 InheritedtabIndex : int
指定 SWF 文件中的对象按 Tab 键顺序排列。
InteractiveObject
 InheritedtextSnapshot : TextSnapshot
[只读 (read-only)] 返回此 DisplayObjectContainer 实例的 TextSnapshot 对象。
DisplayObjectContainer
 InheritedtoolTip : String
要在 ToolTip 中显示的文本。
UIMovieClip
 Inheritedtop : *
从控件内容区域的顶边到组件顶边之间的垂直距离(以像素为单位)。
UIMovieClip
 InheritedtotalFrames : int
[只读 (read-only)] MovieClip 实例中帧的总数。
MovieClip
 InheritedtrackAsMenu : Boolean
指示属于 SimpleButton 或 MovieClip 对象的其它显示对象是否可以接收鼠标释放事件。
MovieClip
 Inheritedtransform : Transform
一个对象,具有与显示对象的矩阵、颜色转换和像素范围有关的属性。
DisplayObject
 InheritedtweeningProperties : Array
由 EffectManager 使用。
UIMovieClip
 InheriteduseHandCursor : Boolean
布尔值,指示当鼠标滑过其 buttonMode 属性设置为 true 的 sprite 时是否显示手指形(手形光标)。
Sprite
 InheritedverticalCenter : *
从组件内容区域的中心到组件中心的垂直距离(以像素为单位)。
UIMovieClip
 Inheritedvisible : Boolean
显示对象是否可见。
DisplayObject
 Inheritedwidth : Number
此对象的宽度(以像素为单位)。
UIMovieClip
 Inheritedx : Number
指示 DisplayObject 实例相对于父级 DisplayObjectContainer 本地坐标的 x 坐标。
DisplayObject
 Inheritedy : Number
指示 DisplayObject 实例相对于父级 DisplayObjectContainer 本地坐标的 y 坐标。
DisplayObject
 Inheritedz : Number
指示 DisplayObject 实例相对于 3D 父容器沿 z 轴的 z 坐标位置。
DisplayObject
受保护的属性
 属性定义方
 Inheritedbounds : Rectangle
[只读 (read-only)] 未经缩放的内容范围。
UIMovieClip
 Inheritedinitialized : Boolean = false
一个标志,用于确定某个对象是否已通过布局的所有三个阶段:提交、测量和布局(假设每个阶段都是必需的)。
UIMovieClip
公共方法
 方法定义方
  
构造函数
ContainerMovieClip
 Inherited
将一个 DisplayObject 子实例添加到该 DisplayObjectContainer 实例中。
DisplayObjectContainer
 Inherited
将一个 DisplayObject 子实例添加到该 DisplayObjectContainer 实例中。
DisplayObjectContainer
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
使用 EventDispatcher 对象注册事件侦听器对象,以使侦听器能够接收事件通知。
EventDispatcher
 Inherited
指示安全限制是否会导致出现以下情况:在列表中忽略了使用指定 point 点调用 DisplayObjectContainer.getObjectsUnderPoint() 方法时返回的所有显示对象。
DisplayObjectContainer
 Inherited
确定指定显示对象是 DisplayObjectContainer 实例的子项还是该实例本身。
DisplayObjectContainer
 Inherited
返回标识此容器中的子项的一组属性。
UIMovieClip
 Inherited
在 IUIComponent 对象的父项文档对象上创建对此对象的 id 引用。
UIMovieClip
 Inherited
在 IUIComponent 对象的父项文档对象上删除对此对象的 id 引用。
UIMovieClip
 Inherited
将事件调度到事件流中。
EventDispatcher
 Inherited
当组件获得焦点时,由 FocusManager 调用。
UIMovieClip
 Inherited
executeBindings(recurse:Boolean = false):void
将数据绑定到此 UIComponent 对象。
UIMovieClip
 Inherited
在指定的索引位置提供自动化对象。
UIMovieClip
 Inherited
getBounds(targetCoordinateSpace:DisplayObject):Rectangle
返回一个矩形,该矩形定义相对于 targetCoordinateSpace 对象坐标系的显示对象区域。
DisplayObject
 Inherited
返回位于指定索引处的子显示对象实例。
DisplayObjectContainer
 Inherited
返回具有指定名称的子显示对象。
DisplayObjectContainer
 Inherited
返回 DisplayObject 的 child 实例的索引位置。
DisplayObjectContainer
 Inherited
getConstraintValue(constraintName:String):*
返回指定的约束值。
UIMovieClip
 Inherited
确定是使用显式高度还是测量高度的一种简便方法
UIMovieClip
 Inherited
确定是使用显式宽度还是测量宽度的一种简便方法
UIMovieClip
 Inherited
返回对象的数组,这些对象位于指定点下,并且是该 DisplayObjectContainer 实例的子项(或孙子项,依此类推)。
DisplayObjectContainer
 Inherited
getRect(targetCoordinateSpace:DisplayObject):Rectangle
返回一个矩形,该矩形根据 targetCoordinateSpace 参数定义的坐标系定义显示对象的边界,但不包括形状上的任何笔触。
DisplayObject
 Inherited
将 point 对象从舞台(全局)坐标转换为显示对象的(本地)坐标。
DisplayObject
 Inherited
将二维点从舞台(全局)坐标转换为三维显示对象的(本地)坐标。
DisplayObject
 Inherited
gotoAndPlay(frame:Object, scene:String = null):void
从指定帧开始播放 SWF 文件。
MovieClip
 Inherited
gotoAndStop(frame:Object, scene:String = null):void
将播放头移到影片剪辑的指定帧并停在那里。
MovieClip
 Inherited
检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。
EventDispatcher
 Inherited
指示对象是否已经定义了指定的属性。
Object
 Inherited
计算显示对象,以确定它是否与 obj 显示对象重叠或相交。
DisplayObject
 Inherited
hitTestPoint(x:Number, y:Number, shapeFlag:Boolean = false):Boolean
计算显示对象,以确定它是否与 x 和 y 参数指定的点重叠或相交。
DisplayObject
 Inherited
初始化对象。
UIMovieClip
 Inherited
指示 Object 类的实例是否在指定为参数的对象的原型链中。
Object
 Inherited
将三维显示对象的(本地)坐标的三维点转换为舞台(全局)坐标中的二维点。
DisplayObject
 Inherited
将 point 对象从显示对象的(本地)坐标转换为舞台(全局)坐标。
DisplayObject
 Inherited
将此对象移动到指定的 x 和 y 坐标。
UIMovieClip
 Inherited
将播放头转到下一帧并停止。
MovieClip
 Inherited
将播放头移动到 MovieClip 实例的下一场景。
MovieClip
 Inherited
owns(displayObject:DisplayObject):Boolean
如果 owner 属性链从 child 指向此 UIComponent,则返回 true。
UIMovieClip
 Inherited
当在父项中添加或删除 UIComponent 对象时由 Flex 调用。
UIMovieClip
 Inherited
在影片剪辑的时间轴中移动播放头。
MovieClip
 Inherited
将播放头转到前一帧并停止。
MovieClip
 Inherited
将播放头移动到 MovieClip 实例的前一场景。
MovieClip
 Inherited
指示指定的属性是否存在、是否可枚举。
Object
 Inherited
对于每个效果事件,注册 EffectManager 作为其中一个事件侦听器。
UIMovieClip
 Inherited
从 DisplayObjectContainer 实例的子列表中删除指定的 child DisplayObject 实例。
DisplayObjectContainer
 Inherited
从 DisplayObjectContainer 的子列表中指定的 index 位置删除子 DisplayObject。
DisplayObjectContainer
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
从 EventDispatcher 对象中删除侦听器。
EventDispatcher
 Inherited
重放指定的事件。
UIMovieClip
 Inherited
使用提供的 ID 解析子项。
UIMovieClip
 Inherited
setActualSize(newWidth:Number, newHeight:Number):void
设置此对象的实际大小。
UIMovieClip
 Inherited
更改现有子项在显示对象容器中的位置。
DisplayObjectContainer
 Inherited
setConstraintValue(constraintName:String, value:*):void
设置指定的约束值。
UIMovieClip
 Inherited
当组件获得焦点时,由 FocusManager 调用。
UIMovieClip
 Inherited
设置循环操作动态属性的可用性。
Object
 Inherited
setVisible(value:Boolean, noEvent:Boolean = false):void
当 visible 属性发生更改时调用。
UIMovieClip
 Inherited
startDrag(lockCenter:Boolean = false, bounds:Rectangle = null):void
允许用户拖动指定的 Sprite。
Sprite
 Inherited
停止影片剪辑中的播放头。
MovieClip
 Inherited
结束 startDrag() 方法。
Sprite
 Inherited
交换两个指定子对象的 Z 轴顺序(从前到后顺序)。
DisplayObjectContainer
 Inherited
swapChildrenAt(index1:int, index2:int):void
在子级列表中两个指定的索引位置,交换子对象的 Z 轴顺序(前后顺序)。
DisplayObjectContainer
 Inherited
返回指定对象的字符串表示形式。
Object
 Inherited
返回指定对象的原始值。
Object
 Inherited
检查是否用此 EventDispatcher 对象或其任何始祖为指定事件类型注册了事件侦听器。
EventDispatcher
受保护的方法
 方法定义方
 Inherited
监视转换过程中大小和进度变化的主函数。
UIMovieClip
 Inherited
以递归方式查找所有 tabEnabled=true 的子项,并将它们添加到 focusableObjects 数组。
UIMovieClip
 Inherited
当焦点进入我们的任一子项时调用。
UIMovieClip
 Inherited
通知父项大小已更改。
UIMovieClip
事件
 事件 摘要 定义方
 Inherited[广播事件] Flash Player 或 AIR 应用程序获得操作系统焦点并变为活动状态时将调度此事件。EventDispatcher
 Inherited使用 addChild() 或 addChildAt() 方法将组件作为内容子项添加到容器时调度。UIMovieClip
 Inherited将显示对象添加到显示列表中时调度。DisplayObject
 Inherited在将显示对象直接添加到舞台显示列表或将包含显示对象的子树添加至舞台显示列表中时调度。DisplayObject
 Inherited当用户从文本上下文菜单中选择“清除”(或“删除”)时调度。InteractiveObject
 Inherited用户在同一 InteractiveObject 上按下并释放用户指针设备的主按钮时调度。InteractiveObject
 Inherited当用户在 AIR 应用程序中选择与此交互式对象相关联的上下文菜单时调度。InteractiveObject
 Inherited当用户激活特定于平台的复制操作的快捷键组合或从文本上下文菜单中选择“复制”时调度。InteractiveObject
 Inherited当组件完成构建时调度。UIMovieClip
 Inherited视图状态更改后调度。UIMovieClip
 Inherited在 currentState 属性更改后但视图状态更改前调度。UIMovieClip
 Inherited当用户激活特定于平台的剪切操作的快捷键组合或从文本上下文菜单中选择“剪切”时调度。InteractiveObject
 Inherited[广播事件] Flash Player 或 AIR 应用程序失去操作系统焦点并变为非活动状态时将调度此事件。EventDispatcher
 Inherited如果 InteractiveObject 的 doubleClickEnabled 标志设置为 true,当用户在该对象上快速连续按下两次并释放指针设备的主按钮时调度。InteractiveObject
 Inherited在拖动操作完成时(将拖动的数据放到放置目标时或在没有执行放置操作的情况下结束拖放操作时)由拖动启动器(作为要拖动的数据源的组件)调度。UIMovieClip
 Inherited用户在放置目标上释放鼠标时由放置目标调度。UIMovieClip
 Inherited当用户在拖动操作过程中将鼠标移动到某个组件所处的位置时,由该组件调度。UIMovieClip
 Inherited用户在组件外拖动但没有将数据放置到目标时,由组件调度。UIMovieClip
 Inherited在拖动操作期间,当用户在鼠标位于组件上方的情况下移动鼠标时,由组件调度。UIMovieClip
 Inherited[播放事件] 播放头进入新帧时调度。DisplayObject
 Inherited[广播事件] 播放头退出当前帧时调度。DisplayObject
 Inherited显示对象获得焦点后调度。InteractiveObject
 Inherited显示对象失去焦点后调度。InteractiveObject
 Inherited[广播事件] 在帧显示对象的构造函数运行之后但在帧脚本运行之前调度。DisplayObject
 Inherited当对象的状态从可见变为不可见时调度。UIMovieClip
 Inherited当组件完成构建并设置了所有初始化属性后调度。UIMovieClip
 Inherited用户按下某个键时调度。InteractiveObject
 Inherited用户尝试使用键盘导航更改焦点时调度。InteractiveObject
 Inherited用户释放某个键时调度。InteractiveObject
 Inherited当用户在同一 InteractiveObject 上按下并释放用户指针设备的中间按钮时调度。InteractiveObject
 Inherited当用户在 InteractiveObject 实例上按下指针设备的中间按钮时调度。InteractiveObject
 Inherited当用户在 InteractiveObject 实例上释放指针设备按钮时调度。InteractiveObject
 Inherited当用户在 InteractiveObject 实例上按下指针设备按钮时调度。InteractiveObject
 Inherited当用户在使用 PopUpManager 打开的某个组件外部单击时,从该组件调度。UIMovieClip
 Inherited用户尝试使用指针设备更改焦点时调度。InteractiveObject
 Inherited用户移动 InteractiveObject 上的指针设备时调度。InteractiveObject
 Inherited用户将指针设备从 InteractiveObject 实例上移开时调度。InteractiveObject
 Inherited用户将指针设备移动到 InteractiveObject 实例上时调度。InteractiveObject
 Inherited当用户在 InteractiveObject 实例上释放指针设备按钮时调度。InteractiveObject
 Inherited当鼠标滚轮滚动到 InteractiveObject 实例上时调度。InteractiveObject
 Inherited当用户使用鼠标滚轮滚动到使用 PopUpManager 打开的某个组件外部时,从该组件调度。UIMovieClip
 Inherited移动对象后调度。UIMovieClip
 Inherited当用户释放拖动动作时由拖动启动器 InteractiveObject 调度。InteractiveObject
 Inherited在将拖动对象放置到目标上且已通过对 DragManager.acceptDragDrop() 的调用接受该放置操作时,由目标 InteractiveObject 调度。InteractiveObject
 Inherited当拖动动作进入其边界时由 InteractiveObject 调度。InteractiveObject
 Inherited当拖动动作离开其边界时由 InteractiveObject 调度。InteractiveObject
 Inherited当拖动动作保持在其边界内时,由 InteractiveObject 持续调度。InteractiveObject
 Inherited在拖动操作开始时由在 DragManager.doDrag() 调用中指定为拖动启动器的 InteractiveObject 调度。InteractiveObject
 Inherited在拖动操作期间由在 DragManager.doDrag() 调用中指定为拖动启动器的 InteractiveObject 调度。InteractiveObject
 Inherited当用户激活特定于平台的粘贴操作的快捷键组合或从文本上下文菜单中选择“粘贴”时调度。InteractiveObject
 Inherited在组件初始化序列开始时调度。UIMovieClip
 Inherited使用 removeChild() 或 removeChildAt() 方法将组件作为内容子项从容器中删除时调度。UIMovieClip
 Inherited将要从显示列表中删除显示对象时调度。DisplayObject
 Inherited在从显示列表中直接删除显示对象或删除包含显示对象的子树时调度。DisplayObject
 Inherited[广播事件] 将要更新和呈现显示列表时调度。DisplayObject
 Inherited在调整组件大小时调度。UIMovieClip
 Inherited当用户在同一 InteractiveObject 上按下并释放用户指针设备的右按钮时调度。InteractiveObject
 Inherited当用户在 InteractiveObject 实例上按下指针设备按钮时调度。InteractiveObject
 Inherited当用户在 InteractiveObject 实例上释放指针设备按钮时调度。InteractiveObject
 Inherited用户将指针设备从 InteractiveObject 实例上移开时调度。InteractiveObject
 Inherited用户将指针设备移动到 InteractiveObject 实例上时调度。InteractiveObject
 Inherited当用户激活特定于平台的全选操作的快捷键组合或从文本上下文菜单中选择“全选”时调度。InteractiveObject
 Inherited当对象的状态从不可见变为可见时调度。UIMovieClip
 Inherited对象的 tabChildren 标志值发生更改时调度。InteractiveObject
 Inherited对象的 tabEnabled 标志发生更改时调度。InteractiveObject
 Inherited对象的 tabIndex 属性值发生更改时调度。InteractiveObject
 Inherited要创建 ToolTip 时由组件调度。UIMovieClip
 Inherited已隐藏组件的 ToolTip 并要将其放弃时由组件调度。UIMovieClip
 Inherited要隐藏组件的 ToolTip 时由组件调度。UIMovieClip
 Inherited要显示组件的 ToolTip 时由组件调度。UIMovieClip
 Inherited显示组件的 ToolTip 时由组件调度。UIMovieClip
 Inherited用户将鼠标移动到设置了 toolTip 属性的组件上方后,由该组件调度。UIMovieClip
属性详细信息
content属性
content:IUIComponent  [读写]

要在此容器内部显示的 Flex 内容。

通常,要在 ActionScript 中向容器添加子项,需要使用 Container.addChild()Container.addChildAt() 方法。但是,要向 Flash 容器的 ContainerMovieClip.content 属性添加子项,则不使用 addChild()addChildAt() 方法,而是直接将子项分配给内容属性。



实现
    public function get content():IUIComponent
    public function set content(value:IUIComponent):void

示例
以下示例将向 ContainerMovieClip.content 属性分配一个容器。

         
         
             
             
     
         
     
构造函数详细信息
ContainerMovieClip()构造函数
public function ContainerMovieClip()

构造函数