套件 | mx.flash |
類別 | public dynamic class ContainerMovieClip |
繼承 | ContainerMovieClip UIMovieClip MovieClip Sprite DisplayObjectContainer InteractiveObject DisplayObject EventDispatcher Object |
實作 | IVisualElementContainer |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | 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.
預設 MXML 屬性content
屬性 | 定義自 | ||
---|---|---|---|
accessibilityImplementation : AccessibilityImplementation
對此 InteractiveObject 實體目前的輔助功能實作 (AccessibilityImplementation)。 | InteractiveObject | ||
accessibilityProperties : AccessibilityProperties
此顯示物件的目前輔助功能選項。 | DisplayObject | ||
alpha : Number
指出所指定物件的 Alpha 透明度值。 | DisplayObject | ||
automationDelegate : Object
The delegate object that handles the automation-related functionality. | UIMovieClip | ||
automationEnabled : Boolean [唯讀]
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 [唯讀]
The owner of this component for automation purposes. | UIMovieClip | ||
automationParent : DisplayObjectContainer [唯讀]
The parent of this component for automation purposes. | UIMovieClip | ||
automationTabularData : Object [唯讀]
An implementation of the IAutomationTabularData interface, which
can be used to retrieve the data. | UIMovieClip | ||
automationValue : Array [唯讀]
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 [唯讀]
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 [唯讀]
The y-coordinate of the baseline
of the first line of text of the component. | UIMovieClip | ||
blendMode : String
來自 BlendMode 類別的值,會指定要使用何種混合模式。 | DisplayObject | ||
blendShader : Shader [唯寫]
設定用來混合前景和背景的著色器。 | 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
可指定此 sprite 的按鈕模式。 | Sprite | ||
cacheAsBitmap : Boolean
如果設定為 true,Flash 執行階段會快取顯示物件的內部點陣圖表示法。 | DisplayObject | ||
cacheAsBitmapMatrix : Matrix
如果為非 null,當 cacheAsBitmap 設定為 true 時,這個 Matrix 物件會定義顯示物件的顯示方法。 | DisplayObject | ||
cacheHeuristic : Boolean [唯寫]
Used by Flex to suggest bitmap caching for the object. | UIMovieClip | ||
cachePolicy : String [唯讀]
Specifies the bitmap caching policy for this object. | UIMovieClip | ||
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | ||
content : IUIComponent
The Flex content to display inside this container. | ContainerMovieClip | ||
contextMenu : NativeMenu
指定與此物件有關聯的快顯選單。 | InteractiveObject | ||
currentFrame : int [唯讀]
指定在影片片段實體時間軸上,播放磁頭所在的影格編號。 | MovieClip | ||
currentFrameLabel : String [唯讀]
MovieClip 實體之時間軸的目前影格中的標籤。 | MovieClip | ||
currentLabel : String [唯讀]
在 MovieClip 實體時間軸中,播放磁頭所在的目前標籤。 | MovieClip | ||
currentLabels : Array [唯讀]
從目前場景傳回 FrameLabel 物件陣列。 | MovieClip | ||
currentScene : Scene [唯讀]
在 MovieClip 實體時間軸中,播放磁頭所在的目前場景。 | 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
會指定物件是否會收到 doubleClick 事件。 | InteractiveObject | ||
dropTarget : DisplayObject [唯讀]
指定要將 sprite 拖曳至或丟棄至哪個顯示物件上。 | Sprite | ||
enabled : Boolean
這是一個 Boolean 值,用來指示影片片段是否已啟用。 | 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
索引的陣列,其中包含目前和顯示物件相關的每個濾鏡物件。 | 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
會指定這個物件是否會顯示焦點矩形。 | InteractiveObject | ||
framesLoaded : int [唯讀]
從串流 SWF 檔中載入的影格數目。 | MovieClip | ||
graphics : Graphics [唯讀]
指定屬於此 sprite 物件的 Graphics 物件,其中可能會產生向量繪圖命令。 | Sprite | ||
hasFocusableChildren : Boolean
A flag that indicates whether child objects can receive focus. | UIMovieClip | ||
hasLayoutMatrix3D : Boolean [唯讀]
Contains true if the element has 3D Matrix. | UIMovieClip | ||
height : Number [覆寫]
The height of this object, in pixels. | UIMovieClip | ||
hitArea : Sprite
指定用來當作 sprite 作用區域的另一個 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 [唯讀]
Contains true when the element is in 3D. | UIMovieClip | ||
isPlaying : Boolean [唯讀]
Boolean 值,指示目前是否正在播放影片片段。 | 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 [唯讀]
會傳回 LoaderInfo 物件,其中包含關於載入此顯示物件所屬之檔案的資訊。 | DisplayObject | ||
maintainProjectionCenter : Boolean
When true, the component will keep its projection matrix centered on the
middle of its bounding box. | UIMovieClip | ||
mask : DisplayObject
呼叫之顯示物件會以指定的 mask 物件遮蓋。 | 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 [唯讀]
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 [唯讀]
The measured width of this object. | UIMovieClip | ||
metaData : Object
如果中繼資料是透過 PlaceObject4 標籤與 SWF 檔案中的這個 DisplayObject 實體一同儲存,則會取得 DisplayObject 實體的中繼資料物件。 | 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
判斷物件的子系是否支援啟用滑鼠或使用者輸入裝置。 | DisplayObjectContainer | ||
mouseEnabled : Boolean
指定此物件是否接收滑鼠或其他使用者輸入及訊息。 | InteractiveObject | ||
mouseFocusEnabled : Boolean [唯讀]
A flag that indicates whether the component can receive focus
when selected with the mouse. | UIMovieClip | ||
mouseX : Number [唯讀]
指出滑鼠或使用者輸入裝置位置的 x 座標,以像素為單位。 | DisplayObject | ||
mouseY : Number [唯讀]
指出滑鼠或使用者輸入裝置位置的 y 座標,以像素為單位。 | DisplayObject | ||
name : String
指出 DisplayObject 的實體名稱。 | DisplayObject | ||
needsSoftKeyboard : Boolean
指定虛擬鍵盤 (螢幕上的軟體鍵盤) 是否應在此 InteractiveObject 實體接收到焦點時顯示。 | InteractiveObject | ||
numAutomationChildren : int [唯讀]
The number of automation children this container has. | UIMovieClip | ||
numChildren : int [唯讀]
傳回此物件的子系數量。 | DisplayObjectContainer | ||
numElements : int [唯讀]
Returns 1 if there is a viewport, 0 otherwise. | ContainerMovieClip | ||
opaqueBackground : Object
會指定顯示物件是否不透明,並具有特定背景顏色。 | DisplayObject | ||
owner : DisplayObjectContainer
Typically the parent container of this component. | UIMovieClip | ||
parent : DisplayObjectContainer [唯讀]
指出包含此顯示物件的 DisplayObjectContainer 物件。 | DisplayObject | ||
parentDocument : Object [唯讀]
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 [唯讀]
對載入之 SWF 檔案的顯示物件而言,root 屬性就是該 SWF 檔案所呈現之顯示清單樹狀結構部分的最上層顯示物件。 | DisplayObject | ||
rotation : Number [覆寫]
指出 DisplayObject 實體的旋轉度數 (從該物件原本方向算起)。 | UIMovieClip | ||
rotationX : Number [覆寫]
Indicates the x-axis rotation of the DisplayObject instance, in degrees,
from its original orientation relative to the 3D parent container. | UIMovieClip | ||
rotationY : Number [覆寫]
Indicates the y-axis rotation of the DisplayObject instance, in degrees,
from its original orientation relative to the 3D parent container. | UIMovieClip | ||
rotationZ : Number [覆寫]
Indicates the z-axis rotation of the DisplayObject instance, in degrees, from its original orientation relative to the 3D parent container. | UIMovieClip | ||
scale9Grid : Rectangle
目前產生效用的縮放格線。 | DisplayObject | ||
scaleContentWhenResized : Boolean
Whether the scale of the container due to sizing
affects the scale of the flex content. | ContainerMovieClip | ||
scaleX : Number [覆寫]
Number that specifies the horizontal scaling factor. | UIMovieClip | ||
scaleY : Number [覆寫]
Number that specifies the vertical scaling factor. | UIMovieClip | ||
scaleZ : Number [覆寫]
Number that specifies the scaling factor along the z axis. | UIMovieClip | ||
scenes : Array [唯讀]
Scene 物件的陣列,每個 Scene 物件都會列出 MovieClip 實體場景的名稱、影格數目,以及影格標籤。 | MovieClip | ||
scrollRect : Rectangle
顯示物件的捲動矩形範圍。 | DisplayObject | ||
showInAutomationHierarchy : Boolean
A flag that determines if an automation object
shows in the automation hierarchy. | UIMovieClip | ||
softKeyboard : String
控制軟體鍵盤的外觀。 | InteractiveObject | ||
softKeyboardInputAreaOfInterest : Rectangle
定義顯示軟體鍵盤時,應保留於螢幕上的區域 (iOS 未提供)。 | InteractiveObject | ||
soundTransform : flash.media:SoundTransform
控制此 Sprite 的聲音。 | Sprite | ||
stage : Stage [唯讀]
顯示物件的「舞台」。 | DisplayObject | ||
systemManager : ISystemManager
A reference to the SystemManager object for this component. | UIMovieClip | ||
tabChildren : Boolean
判斷物件的子系是否支援啟用定位鍵。 | DisplayObjectContainer | ||
tabEnabled : Boolean
會指定這個物件是否在停駐點順序中。 | 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
會指定 SWF 檔中的物件停駐點順序。 | InteractiveObject | ||
textSnapshot : flash.text:TextSnapshot [唯讀]
傳回此 DisplayObjectContainer 實體的 TextSnapshot 物件。 | 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 [唯讀]
MovieClip 實體中的影格總數。 | MovieClip | ||
trackAsMenu : Boolean
指出屬於 SimpleButton 或 MovieClip 物件的其他顯示工具是否可以接收滑鼠放開事件或其他使用者輸入放開事件。 | MovieClip | ||
transform : flash.geom:Transform
這是一個物件,具有和顯示物件的矩陣、顏色轉換和像素邊界有關的屬性。 | 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
指示當指標滑入 Sprite,且其 buttonMode 屬性設為 true 時,是否要出現指示手掌 (手掌游標) 的 Boolean 值。 | 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 [覆寫]
Whether or not the display object is visible. | UIMovieClip | ||
width : Number [覆寫]
The width of this object, in pixels. | UIMovieClip | ||
x : Number [覆寫]
Number that specifies the component's horizontal position,
in pixels, within its parent container. | UIMovieClip | ||
y : Number [覆寫]
Number that specifies the component's vertical position,
in pixels, within its parent container. | UIMovieClip | ||
z : Number [覆寫]
Indicates the z coordinate position along the z-axis of the DisplayObject
instance relative to the 3D parent container. | UIMovieClip |
方法 | 定義自 | ||
---|---|---|---|
Constructor
| ContainerMovieClip | ||
將 DisplayObject 子實體加入至此 DisplayObjectContainer 實體。 | DisplayObjectContainer | ||
將 DisplayObject 子實體加入至此 DisplayObjectContainer 實體。 | 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
會在 EventDispatcher 物件註冊事件偵聽程式,以便讓偵聽程式收到事件的通知。 | EventDispatcher | ||
指出安全性限制是否會造成傳回的清單 (可用指定的 point 點呼叫 DisplayObjectContainer.getObjectsUnderPoint() 方法來取得) 省略任何顯示物件。 | DisplayObjectContainer | ||
判斷指定的顯示物件是否為 DisplayObjectContainer 實體的子系,或為實體本身。 | 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 | ||
會將事件傳送到事件流程。 | 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 | ||
傳回可定義顯示物件區域 (相對於 targetCoordinateSpace 物件的座標系統) 的矩形。 | 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 | ||
傳回存在於指定索引位置的子顯示物件實體。 | DisplayObjectContainer | ||
傳回具有指定名稱的子顯示物件。 | DisplayObjectContainer | ||
傳回 child DisplayObject 實體的索引位置。 | 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 | ||
傳回位於指定點底下,且屬於此 DisplayObjectContainer 實體之子系 (或孫系,以下類推) 的物件陣列。 | DisplayObjectContainer | ||
Returns the element's preferred height. | UIMovieClip | ||
Returns the element's preferred width. | UIMovieClip | ||
根據 targetCoordinateSpace 參數所定義的座標系統,並排除形狀上的任何筆畫,傳回可定義顯示物件邊界的矩形。 | DisplayObject | ||
將 point 物件從「舞台」(全域) 座標轉換成顯示物件的 (區域) 座標。 | DisplayObject | ||
將二維點從「舞台」(全域) 座標轉換為三維顯示物件的 (區域) 座標。 | DisplayObject | ||
在指定影格開始播放 SWF 檔。 | MovieClip | ||
將播放磁頭移到此影片片段中的指定影格,然後停在該處。 | MovieClip | ||
會檢查 EventDispatcher 物件是否有對特定的事件類型註冊偵聽程式。 | EventDispatcher | ||
指出物件是否有已定義的指定屬性。 | Object | ||
評估顯示物件的範圍框,看它是否與 obj 顯示物件的範圍框重疊或相交。 | DisplayObject | ||
評估顯示物件,看它是否與 x 和 y 參數所指定的點重疊或相交。 | DisplayObject | ||
Initialize the object. | UIMovieClip | ||
An element must call this method when its layoutDirection changes or
when its parent's layoutDirection changes. | UIMovieClip | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
將三維顯示物件的 (區域) 座標的三維點轉換為「舞台」(全域) 座標中的二維點。 | DisplayObject | ||
將 point 物件從顯示物件的 (區域) 座標轉換成「舞台」(全域) 座標。 | DisplayObject | ||
Moves this object to the specified x and y coordinates. | UIMovieClip | ||
將播放磁頭移到下一個影格,並停止播放。 | MovieClip | ||
將播放磁頭移動到 MovieClip 實體的下一個場景。 | 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 | ||
移動影片片段時間軸上的播放磁頭。 | MovieClip | ||
將播放磁頭移到上一個影格,並停止播放。 | MovieClip | ||
將播放磁頭移動到 MovieClip 實體的上一個場景。 | MovieClip | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
For each effect event, register the EffectManager
as one of the event listeners. | UIMovieClip | ||
Removes all visual elements from the container. | ContainerMovieClip | ||
將指定的 child DisplayObject 實體從 DisplayObjectContainer 實體的子清單中移除。 | DisplayObjectContainer | ||
從 DisplayObjectContainer 子清單中的指定索引位置移除子 DisplayObject。 | DisplayObjectContainer | ||
將所有 child DisplayObject 實體從 DisplayObjectContainer 實體的子清單中移除。 | 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 | ||
會從 EventDispatcher 物件移除偵聽程式。 | EventDispatcher | ||
Replays the specified event. | UIMovieClip | ||
升起顯示虛擬鍵盤。 | InteractiveObject | ||
Resolves a child by using the id provided. | UIMovieClip | ||
Sets the actual size of this object. | UIMovieClip | ||
變更顯示物件容器中現有子系的位置。 | 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 | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
Called when the visible property changes. | UIMovieClip | ||
讓使用者拖曳指定的 sprite。 | Sprite | ||
讓使用者將指定的 Sprite 拖曳至觸控裝置上。 | Sprite | ||
停止影片片段中的播放磁頭。 | MovieClip | ||
遞迴停止執行所有 MovieClips 的時間軸根源於此物件。 | DisplayObjectContainer | ||
結束 startDrag() 方法。 | Sprite | ||
結束觸控裝置使用的 startTouchDrag() 方法。 | Sprite | ||
替換兩個指定子物件的 z 順序 (深度階層,由前至後順序)。 | DisplayObjectContainer | ||
在子清單的兩個指定索引位置,替換子物件的 z 順序 (深度階層,由前至後順序)。 | 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 | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | 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 | ||
會傳回指定之物件的基本值。 | Object | ||
檢查此 EventDispatcher 物件是否已註冊事件偵聽程式,或者此物件的任何祖系已為特定事件類型註冊事件偵聽程式。 | EventDispatcher |
content | 屬性 |
content:IUIComponent
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | 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>
實作
public function get content():IUIComponent
public function set content(value:IUIComponent):void
numElements | 屬性 |
scaleContentWhenResized | 屬性 |
scaleContentWhenResized:Boolean
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | 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.
預設值為 false。
實作
public function get scaleContentWhenResized():Boolean
public function set scaleContentWhenResized(value:Boolean):void
ContainerMovieClip | () | 建構函式 |
public function ContainerMovieClip()
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Constructor
addElement | () | 方法 |
public function addElement(element:IVisualElement):IVisualElement
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | 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.
參數
element:IVisualElement — The visual element to add as a child of this container.
|
IVisualElement — The element that was added.
|
addElementAt | () | 方法 |
public function addElementAt(element:IVisualElement, index:int):IVisualElement
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | 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.
參數
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 | () | 方法 |
public function getElementAt(index:int):IVisualElement
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | 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.
參數
index:int — The index of the element to retrieve.
|
IVisualElement — The element at the specified index.
|
擲回值
RangeError — If the index position does not exist in the child list.
|
getElementIndex | () | 方法 |
public function getElementIndex(element:IVisualElement):int
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Returns the 0 if the element passed in is the viewport. Otherwise, it throws an ArgumentError.
參數
element:IVisualElement — The element to identify.
|
int — The index position of the element to identify.
|
擲回值
ArgumentError — If the element is not a child of this object.
|
removeAllElements | () | 方法 |
public function removeAllElements():void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Removes all visual elements from the container.
removeElement | () | 方法 |
public function removeElement(element:IVisualElement):IVisualElement
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | 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.
參數
element:IVisualElement — The element to be removed from the container.
|
IVisualElement — The element removed.
|
removeElementAt | () | 方法 |
public function removeElementAt(index:int):IVisualElement
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | 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.
參數
index:int — The index of the element to remove.
|
IVisualElement — The element removed.
|
setElementIndex | () | 方法 |
public function setElementIndex(element:IVisualElement, index:int):void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | 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.
參數
element:IVisualElement — The element for which you want to change the index number.
| |
index:int — The resulting index number for the element.
|
swapElements | () | 方法 |
public function swapElements(element1:IVisualElement, element2:IVisualElement):void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Swaps the index of the two specified visual elements. All other elements remain in the same index position.
參數
element1:IVisualElement — The first visual element.
| |
element2:IVisualElement — The second visual element.
|
swapElementsAt | () | 方法 |
public function swapElementsAt(index1:int, index2:int):void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | 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.
參數
index1:int — The index of the first element.
| |
index2:int — The index of the second element.
|
Tue Jun 12 2018, 03:47 PM Z