適用於 Adobe® Flash® Platform 的 ActionScript® 3.0 參考
首頁  |  隱藏套件和類別清單 |  套件  |  類別  |  新增內容  |  索引  |  附錄  |  為什麼顯示英文?
篩選: AIR 30.0 和更早版本, Flash Player 30.0 和更早版本, Flash Lite 4
Flex 4.6 和更早版本, Flash Pro CS6 和更早版本
隱藏篩選
mx.core 

IContainer  - AS3 Flex

套件x

最上層
adobe.utils
air.desktop
air.net
air.update
air.update.events
coldfusion.air
coldfusion.air.errors
coldfusion.air.events
coldfusion.service
coldfusion.service.events
coldfusion.service.mxml
com.adobe.acm.solutions.authoring.domain.extensions
com.adobe.acm.solutions.ccr.domain.extensions
com.adobe.consulting.pst.vo
com.adobe.dct.component
com.adobe.dct.component.datadictionary
com.adobe.dct.component.datadictionaryElement
com.adobe.dct.component.dataElementsPanel
com.adobe.dct.component.toolbars
com.adobe.dct.event
com.adobe.dct.exp
com.adobe.dct.model
com.adobe.dct.service
com.adobe.dct.service.provider
com.adobe.dct.transfer
com.adobe.dct.util
com.adobe.dct.view
com.adobe.ep.taskmanagement.domain
com.adobe.ep.taskmanagement.event
com.adobe.ep.taskmanagement.filter
com.adobe.ep.taskmanagement.services
com.adobe.ep.taskmanagement.util
com.adobe.ep.ux.attachmentlist.component
com.adobe.ep.ux.attachmentlist.domain
com.adobe.ep.ux.attachmentlist.domain.events
com.adobe.ep.ux.attachmentlist.domain.renderers
com.adobe.ep.ux.attachmentlist.skin
com.adobe.ep.ux.attachmentlist.skin.renderers
com.adobe.ep.ux.content.event
com.adobe.ep.ux.content.factory
com.adobe.ep.ux.content.handlers
com.adobe.ep.ux.content.managers
com.adobe.ep.ux.content.model.asset
com.adobe.ep.ux.content.model.preview
com.adobe.ep.ux.content.model.relation
com.adobe.ep.ux.content.model.search
com.adobe.ep.ux.content.model.toolbar
com.adobe.ep.ux.content.search
com.adobe.ep.ux.content.services
com.adobe.ep.ux.content.services.load
com.adobe.ep.ux.content.services.permissions
com.adobe.ep.ux.content.services.preview
com.adobe.ep.ux.content.services.providers
com.adobe.ep.ux.content.services.query
com.adobe.ep.ux.content.services.relationships
com.adobe.ep.ux.content.services.search.lccontent
com.adobe.ep.ux.content.services.version
com.adobe.ep.ux.content.view
com.adobe.ep.ux.content.view.components.activate
com.adobe.ep.ux.content.view.components.grid
com.adobe.ep.ux.content.view.components.grid.hover
com.adobe.ep.ux.content.view.components.grid.hover.component
com.adobe.ep.ux.content.view.components.grid.renderers
com.adobe.ep.ux.content.view.components.relationships
com.adobe.ep.ux.content.view.components.review
com.adobe.ep.ux.content.view.components.search.renderers
com.adobe.ep.ux.content.view.components.searchpod
com.adobe.ep.ux.content.view.components.toolbar
com.adobe.ep.ux.content.view.components.toolbar.controlRenderers
com.adobe.ep.ux.content.view.components.version
com.adobe.ep.ux.documentsubmit.component
com.adobe.ep.ux.documentsubmit.domain
com.adobe.ep.ux.documentsubmit.skin
com.adobe.ep.ux.taskaction.component
com.adobe.ep.ux.taskaction.domain
com.adobe.ep.ux.taskaction.domain.events
com.adobe.ep.ux.taskaction.skin
com.adobe.ep.ux.taskdetails.component
com.adobe.ep.ux.taskdetails.domain
com.adobe.ep.ux.taskdetails.skin
com.adobe.ep.ux.tasklist.component
com.adobe.ep.ux.tasklist.domain
com.adobe.ep.ux.tasklist.skin
com.adobe.ep.ux.webdocumentviewer.domain
com.adobe.exm.expression
com.adobe.exm.expression.error
com.adobe.exm.expression.event
com.adobe.exm.expression.impl
com.adobe.fiber.runtime.lib
com.adobe.fiber.services
com.adobe.fiber.services.wrapper
com.adobe.fiber.styles
com.adobe.fiber.util
com.adobe.fiber.valueobjects
com.adobe.gravity.binding
com.adobe.gravity.context
com.adobe.gravity.flex.bundleloader
com.adobe.gravity.flex.progress
com.adobe.gravity.flex.serviceloader
com.adobe.gravity.framework
com.adobe.gravity.init
com.adobe.gravity.service.bundleloader
com.adobe.gravity.service.logging
com.adobe.gravity.service.manifest
com.adobe.gravity.service.progress
com.adobe.gravity.tracker
com.adobe.gravity.ui
com.adobe.gravity.utility
com.adobe.gravity.utility.async
com.adobe.gravity.utility.error
com.adobe.gravity.utility.events
com.adobe.gravity.utility.factory
com.adobe.gravity.utility.flex.async
com.adobe.gravity.utility.logging
com.adobe.gravity.utility.message
com.adobe.gravity.utility.sequence
com.adobe.gravity.utility.url
com.adobe.guides.control
com.adobe.guides.domain
com.adobe.guides.i18n
com.adobe.guides.spark.components.skins
com.adobe.guides.spark.components.skins.mx
com.adobe.guides.spark.headers.components
com.adobe.guides.spark.headers.skins
com.adobe.guides.spark.layouts.components
com.adobe.guides.spark.layouts.skins
com.adobe.guides.spark.navigators.components
com.adobe.guides.spark.navigators.renderers
com.adobe.guides.spark.navigators.skins
com.adobe.guides.spark.util
com.adobe.guides.spark.wrappers.components
com.adobe.guides.spark.wrappers.skins
com.adobe.guides.submit
com.adobe.icc.dc.domain
com.adobe.icc.dc.domain.factory
com.adobe.icc.editors.events
com.adobe.icc.editors.handlers
com.adobe.icc.editors.managers
com.adobe.icc.editors.model
com.adobe.icc.editors.model.config
com.adobe.icc.editors.model.el
com.adobe.icc.editors.model.el.operands
com.adobe.icc.editors.model.el.operators
com.adobe.icc.enum
com.adobe.icc.external.dc
com.adobe.icc.obj
com.adobe.icc.services
com.adobe.icc.services.category
com.adobe.icc.services.config
com.adobe.icc.services.download
com.adobe.icc.services.export
com.adobe.icc.services.external
com.adobe.icc.services.formbridge
com.adobe.icc.services.fragmentlayout
com.adobe.icc.services.layout
com.adobe.icc.services.letter
com.adobe.icc.services.locator
com.adobe.icc.services.module
com.adobe.icc.services.render
com.adobe.icc.services.submit
com.adobe.icc.services.user
com.adobe.icc.token
com.adobe.icc.vo
com.adobe.icc.vo.render
com.adobe.icomm.assetplacement.controller
com.adobe.icomm.assetplacement.controller.utils
com.adobe.icomm.assetplacement.data
com.adobe.icomm.assetplacement.model
com.adobe.livecycle.assetmanager.client
com.adobe.livecycle.assetmanager.client.event
com.adobe.livecycle.assetmanager.client.handler
com.adobe.livecycle.assetmanager.client.managers
com.adobe.livecycle.assetmanager.client.model
com.adobe.livecycle.assetmanager.client.model.cms
com.adobe.livecycle.assetmanager.client.service
com.adobe.livecycle.assetmanager.client.service.search
com.adobe.livecycle.assetmanager.client.service.search.cms
com.adobe.livecycle.assetmanager.client.utils
com.adobe.livecycle.content
com.adobe.livecycle.rca.model
com.adobe.livecycle.rca.model.constant
com.adobe.livecycle.rca.model.document
com.adobe.livecycle.rca.model.participant
com.adobe.livecycle.rca.model.reminder
com.adobe.livecycle.rca.model.stage
com.adobe.livecycle.rca.service
com.adobe.livecycle.rca.service.core
com.adobe.livecycle.rca.service.core.delegate
com.adobe.livecycle.rca.service.process
com.adobe.livecycle.rca.service.process.delegate
com.adobe.livecycle.rca.token
com.adobe.livecycle.ria.security.api
com.adobe.livecycle.ria.security.service
com.adobe.mosaic.layouts
com.adobe.mosaic.layouts.dragAndDrop
com.adobe.mosaic.layouts.interfaces
com.adobe.mosaic.mxml
com.adobe.mosaic.om.constants
com.adobe.mosaic.om.events
com.adobe.mosaic.om.impl
com.adobe.mosaic.om.interfaces
com.adobe.mosaic.skinning
com.adobe.mosaic.sparklib.editors
com.adobe.mosaic.sparklib.optionMenu
com.adobe.mosaic.sparklib.scrollableMenu
com.adobe.mosaic.sparklib.scrollableMenu.skins
com.adobe.mosaic.sparklib.tabLayout
com.adobe.mosaic.sparklib.tabLayout.events
com.adobe.mosaic.sparklib.tabLayout.layouts
com.adobe.mosaic.sparklib.tabLayout.skins
com.adobe.mosaic.sparklib.text
com.adobe.mosaic.sparklib.util
com.adobe.solutions.acm.authoring.presentation
com.adobe.solutions.acm.authoring.presentation.actionbar
com.adobe.solutions.acm.authoring.presentation.common
com.adobe.solutions.acm.authoring.presentation.events
com.adobe.solutions.acm.authoring.presentation.fragment
com.adobe.solutions.acm.authoring.presentation.letter
com.adobe.solutions.acm.authoring.presentation.letter.data
com.adobe.solutions.acm.authoring.presentation.preview
com.adobe.solutions.acm.authoring.presentation.rte
com.adobe.solutions.acm.ccr.presentation
com.adobe.solutions.acm.ccr.presentation.contentcapture
com.adobe.solutions.acm.ccr.presentation.contentcapture.events
com.adobe.solutions.acm.ccr.presentation.contentcapture.preview
com.adobe.solutions.acm.ccr.presentation.datacapture
com.adobe.solutions.acm.ccr.presentation.datacapture.renderers
com.adobe.solutions.acm.ccr.presentation.pdf
com.adobe.solutions.exm
com.adobe.solutions.exm.authoring
com.adobe.solutions.exm.authoring.components.controls
com.adobe.solutions.exm.authoring.components.toolbars
com.adobe.solutions.exm.authoring.domain
com.adobe.solutions.exm.authoring.domain.expression
com.adobe.solutions.exm.authoring.domain.impl
com.adobe.solutions.exm.authoring.domain.method
com.adobe.solutions.exm.authoring.domain.variable
com.adobe.solutions.exm.authoring.enum
com.adobe.solutions.exm.authoring.events
com.adobe.solutions.exm.authoring.model
com.adobe.solutions.exm.authoring.renderer
com.adobe.solutions.exm.authoring.view
com.adobe.solutions.exm.expression
com.adobe.solutions.exm.impl
com.adobe.solutions.exm.impl.method
com.adobe.solutions.exm.method
com.adobe.solutions.exm.mock
com.adobe.solutions.exm.mock.method
com.adobe.solutions.exm.runtime
com.adobe.solutions.exm.runtime.impl
com.adobe.solutions.exm.variable
com.adobe.solutions.prm.constant
com.adobe.solutions.prm.domain
com.adobe.solutions.prm.domain.factory
com.adobe.solutions.prm.domain.impl
com.adobe.solutions.prm.domain.manager
com.adobe.solutions.prm.presentation.asset
com.adobe.solutions.prm.presentation.constant
com.adobe.solutions.prm.presentation.document
com.adobe.solutions.prm.presentation.event
com.adobe.solutions.prm.presentation.file
com.adobe.solutions.prm.presentation.project
com.adobe.solutions.prm.presentation.team
com.adobe.solutions.prm.presentation.util
com.adobe.solutions.prm.service
com.adobe.solutions.prm.services.impl
com.adobe.solutions.prm.vo
com.adobe.solutions.rca.constant
com.adobe.solutions.rca.domain
com.adobe.solutions.rca.domain.common
com.adobe.solutions.rca.domain.factory
com.adobe.solutions.rca.domain.impl
com.adobe.solutions.rca.domain.impl.manager
com.adobe.solutions.rca.domain.manager
com.adobe.solutions.rca.presentation
com.adobe.solutions.rca.presentation.comment
com.adobe.solutions.rca.presentation.constant
com.adobe.solutions.rca.presentation.event
com.adobe.solutions.rca.presentation.gantt
com.adobe.solutions.rca.presentation.gantt.ruler
com.adobe.solutions.rca.presentation.template
com.adobe.solutions.rca.presentation.template.audit
com.adobe.solutions.rca.presentation.template.definition
com.adobe.solutions.rca.presentation.template.documents
com.adobe.solutions.rca.presentation.template.stages
com.adobe.solutions.rca.presentation.util
com.adobe.solutions.rca.service
com.adobe.solutions.rca.services.impl
com.adobe.solutions.rca.vo
com.adobe.solutions.rca.vo.um
com.adobe.viewsource
fl.accessibility
fl.containers
fl.controls
fl.controls.dataGridClasses
fl.controls.listClasses
fl.controls.progressBarClasses
fl.core
fl.data
fl.display
fl.events
fl.ik
fl.lang
fl.livepreview
fl.managers
fl.motion
fl.motion.easing
fl.rsl
fl.text
fl.transitions
fl.transitions.easing
fl.video
flash.accessibility
flash.concurrent
flash.crypto
flash.data
flash.desktop
flash.display
flash.display3D
flash.display3D.textures
flash.errors
flash.events
flash.external
flash.filesystem
flash.filters
flash.geom
flash.globalization
flash.html
flash.media
flash.net
flash.net.dns
flash.net.drm
flash.notifications
flash.permissions
flash.printing
flash.profiler
flash.sampler
flash.security
flash.sensors
flash.system
flash.text
flash.text.engine
flash.text.ime
flash.ui
flash.utils
flash.xml
flashx.textLayout
flashx.textLayout.compose
flashx.textLayout.container
flashx.textLayout.conversion
flashx.textLayout.edit
flashx.textLayout.elements
flashx.textLayout.events
flashx.textLayout.factory
flashx.textLayout.formats
flashx.textLayout.operations
flashx.textLayout.utils
flashx.undo
ga.controls
ga.layouts
ga.model
ga.uiComponents
ga.util
ga.views
ga.wrappers
lc.foundation
lc.foundation.domain
lc.foundation.events
lc.foundation.ui
lc.foundation.util
lc.preloader
lc.procmgmt
lc.procmgmt.commands
lc.procmgmt.domain
lc.procmgmt.events
lc.procmgmt.formbridge
lc.procmgmt.impl
lc.procmgmt.ui.attachments
lc.procmgmt.ui.controls
lc.procmgmt.ui.controls.card
lc.procmgmt.ui.controls.renderer
lc.procmgmt.ui.help
lc.procmgmt.ui.layout
lc.procmgmt.ui.presentationmodel
lc.procmgmt.ui.process
lc.procmgmt.ui.search
lc.procmgmt.ui.startpoint
lc.procmgmt.ui.task
lc.procmgmt.ui.task.form
lc.procmgmt.ui.task.form.commands
lc.procmgmt.ui.tracking
mx.accessibility
mx.automation
mx.automation.air
mx.automation.delegates
mx.automation.delegates.advancedDataGrid
mx.automation.delegates.charts
mx.automation.delegates.containers
mx.automation.delegates.controls
mx.automation.delegates.controls.dataGridClasses
mx.automation.delegates.controls.fileSystemClasses
mx.automation.delegates.core
mx.automation.delegates.flashflexkit
mx.automation.events
mx.binding
mx.binding.utils
mx.charts
mx.charts.chartClasses
mx.charts.effects
mx.charts.effects.effectClasses
mx.charts.events
mx.charts.renderers
mx.charts.series
mx.charts.series.items
mx.charts.series.renderData
mx.charts.styles
mx.collections
mx.collections.errors
mx.containers
mx.containers.accordionClasses
mx.containers.dividedBoxClasses
mx.containers.errors
mx.containers.utilityClasses
mx.controls
mx.controls.advancedDataGridClasses
mx.controls.dataGridClasses
mx.controls.listClasses
mx.controls.menuClasses
mx.controls.olapDataGridClasses
mx.controls.scrollClasses
mx.controls.sliderClasses
mx.controls.textClasses
mx.controls.treeClasses
mx.controls.videoClasses
mx.core
mx.core.windowClasses
mx.data
mx.data.crypto
mx.data.errors
mx.data.events
mx.data.messages
mx.data.mxml
mx.data.offline.errors
mx.data.utils
mx.effects
mx.effects.easing
mx.effects.effectClasses
mx.events
mx.filters
mx.flash
mx.formatters
mx.geom
mx.graphics
mx.graphics.codec
mx.graphics.shaderClasses
mx.logging
mx.logging.errors
mx.logging.targets
mx.managers
mx.messaging
mx.messaging.channels
mx.messaging.config
mx.messaging.errors
mx.messaging.events
mx.messaging.management
mx.messaging.messages
mx.modules
mx.netmon
mx.olap
mx.olap.aggregators
mx.preloaders
mx.printing
mx.resources
mx.rpc
mx.rpc.events
mx.rpc.http
mx.rpc.http.mxml
mx.rpc.livecycle
mx.rpc.mxml
mx.rpc.remoting
mx.rpc.remoting.mxml
mx.rpc.soap
mx.rpc.soap.mxml
mx.rpc.wsdl
mx.rpc.xml
mx.skins
mx.skins.halo
mx.skins.spark
mx.skins.wireframe
mx.skins.wireframe.windowChrome
mx.states
mx.styles
mx.utils
mx.validators
org.osmf.containers
org.osmf.display
org.osmf.elements
org.osmf.events
org.osmf.layout
org.osmf.logging
org.osmf.media
org.osmf.metadata
org.osmf.net
org.osmf.net.dvr
org.osmf.net.httpstreaming
org.osmf.net.metrics
org.osmf.net.qos
org.osmf.net.rtmpstreaming
org.osmf.net.rules
org.osmf.traits
org.osmf.utils
spark.accessibility
spark.automation.delegates
spark.automation.delegates.components
spark.automation.delegates.components.gridClasses
spark.automation.delegates.components.mediaClasses
spark.automation.delegates.components.supportClasses
spark.automation.delegates.skins.spark
spark.automation.events
spark.collections
spark.components
spark.components.calendarClasses
spark.components.gridClasses
spark.components.mediaClasses
spark.components.supportClasses
spark.components.windowClasses
spark.core
spark.effects
spark.effects.animation
spark.effects.easing
spark.effects.interpolation
spark.effects.supportClasses
spark.events
spark.filters
spark.formatters
spark.formatters.supportClasses
spark.globalization
spark.globalization.supportClasses
spark.layouts
spark.layouts.supportClasses
spark.managers
spark.modules
spark.preloaders
spark.primitives
spark.primitives.supportClasses
spark.skins
spark.skins.mobile
spark.skins.mobile.supportClasses
spark.skins.spark
spark.skins.spark.mediaClasses.fullScreen
spark.skins.spark.mediaClasses.normal
spark.skins.spark.windowChrome
spark.skins.wireframe
spark.skins.wireframe.mediaClasses
spark.skins.wireframe.mediaClasses.fullScreen
spark.transitions
spark.utils
spark.validators
spark.validators.supportClasses
xd.core.axm.enterprise.view.components
xd.core.axm.enterprise.view.skins
xd.core.axm.view.components
xd.core.axm.view.components.support

語言元素

全域常數
全域函數
運算子
陳述式、關鍵字和指令
特殊類型

附錄

新增內容
編譯器錯誤
編譯器警告
執行階段錯誤
移轉至 ActionScript 3
支援的字元集
僅限 MXML 標籤
移動 XML 元素
Timed Text 標籤
不建議元素清單
AccessibilityImplementation 常數
如何使用 ActionScript 範例
法律聲明
套件mx.core
介面public interface IContainer extends IUIComponent , IFlexDisplayObject , IBitmapDrawable , IEventDispatcher
實作者 Container, Legend

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

IContainer is a interface that indicates a component extends or mimics mx.core.Container

相關 API 元素



公用屬性
 屬性定義自
 InheritedaccessibilityProperties : AccessibilityProperties
此顯示物件的目前輔助功能選項。
IFlexDisplayObject
 Inheritedalpha : Number
指出所指定物件的 Alpha 透明度值。
IFlexDisplayObject
 InheritedbaselinePosition : Number
[唯讀] The y-coordinate of the baseline of the first line of text of the component.
IUIComponent
 InheritedblendMode : String
來自 BlendMode 類別的值,會指定要使用何種混合模式。
IFlexDisplayObject
  buttonMode : Boolean
可指定此 sprite 的按鈕模式。
IContainer
 InheritedcacheAsBitmap : Boolean
如果設定為 true,Flash 執行階段會快取顯示物件的內部點陣圖表示法。
IFlexDisplayObject
  creatingContentPane : Boolean
Containers use an internal content pane to control scrolling.
IContainer
  defaultButton : IFlexDisplayObject
The Button control designated as the default button for the container.
IContainer
 Inheriteddocument : Object
A reference to the document object associated with this component.
IUIComponent
  doubleClickEnabled : Boolean
會指定物件是否會收到 doubleClick 事件。
IContainer
  dropTarget : DisplayObject
[唯讀] 指定要將 sprite 拖曳至或丟棄至哪個顯示物件上。
IContainer
 Inheritedenabled : Boolean
Whether the component can accept user interaction.
IUIComponent
 InheritedexplicitHeight : Number
The explicitly specified height for the component, in pixels, as the component's coordinates.
IUIComponent
 InheritedexplicitMaxHeight : Number
[唯讀] Number that specifies the maximum height of the component, in pixels, as the component's coordinates.
IUIComponent
 InheritedexplicitMaxWidth : Number
[唯讀] Number that specifies the maximum width of the component, in pixels, as the component's coordinates.
IUIComponent
 InheritedexplicitMinHeight : Number
[唯讀] Number that specifies the minimum height of the component, in pixels, as the component's coordinates.
IUIComponent
 InheritedexplicitMinWidth : Number
[唯讀] Number that specifies the minimum width of the component, in pixels, as the component's coordinates.
IUIComponent
 InheritedexplicitWidth : Number
The explicitly specified width for the component, in pixels, as the component's coordinates.
IUIComponent
 Inheritedfilters : Array
索引的陣列,其中包含目前和顯示物件相關的每個濾鏡物件。
IFlexDisplayObject
  focusManager : IFocusManager
[唯讀] Gets the FocusManager that controls focus for this component and its peers.
IContainer
 InheritedfocusPane : Sprite
A single Sprite object that is shared among components and used as an overlay for drawing the focus indicator.
IUIComponent
  focusRect : Object
會指定這個物件是否會顯示焦點矩形。
IContainer
  graphics : Graphics
[唯讀] 指定屬於此 sprite 物件的 Graphics 物件,其中可能會產生向量繪圖命令。
IContainer
 Inheritedheight : Number
會指出顯示物件的高度,以像素為單位。
IFlexDisplayObject
  hitArea : Sprite
指定用來當作 sprite 作用區域的另一個 sprite。
IContainer
  horizontalScrollPosition : Number
The current position of the horizontal scroll bar.
IContainer
 InheritedincludeInLayout : Boolean
Specifies whether this component is included in the layout of the parent container.
IUIComponent
 InheritedisPopUp : Boolean
Set to true by the PopUpManager to indicate that component has been popped up.
IUIComponent
 InheritedloaderInfo : LoaderInfo
[唯讀] 會傳回 LoaderInfo 物件,其中包含關於載入此顯示物件所屬之檔案的資訊。
IFlexDisplayObject
 Inheritedmask : DisplayObject
呼叫之顯示物件會以指定的 mask 物件遮蓋。
IFlexDisplayObject
 InheritedmaxHeight : Number
[唯讀] Number that specifies the maximum height of the component, in pixels, as the component's coordinates.
IUIComponent
 InheritedmaxWidth : Number
[唯讀] Number that specifies the maximum width of the component, in pixels, as the component's coordinates.
IUIComponent
 InheritedmeasuredHeight : Number
[唯讀] The measured height of this object.
IFlexDisplayObject
 InheritedmeasuredMinHeight : Number
The default minimum height of the component, in pixels.
IUIComponent
 InheritedmeasuredMinWidth : Number
The default minimum width of the component, in pixels.
IUIComponent
 InheritedmeasuredWidth : Number
[唯讀] The measured width of this object.
IFlexDisplayObject
 InheritedminHeight : Number
[唯讀] Number that specifies the minimum height of the component, in pixels, as the component's coordinates.
IUIComponent
 InheritedminWidth : Number
[唯讀] Number that specifies the minimum width of the component, in pixels, as the component's coordinates.
IUIComponent
  mouseChildren : Boolean
判斷物件的子系是否支援啟用滑鼠或使用者輸入裝置。
IContainer
  mouseEnabled : Boolean
指定此物件是否接收滑鼠或其他使用者輸入及訊息。
IContainer
 InheritedmouseX : Number
[唯讀] 指出滑鼠或使用者輸入裝置位置的 x 座標,以像素為單位。
IFlexDisplayObject
 InheritedmouseY : Number
[唯讀] 指出滑鼠或使用者輸入裝置位置的 y 座標,以像素為單位。
IFlexDisplayObject
 Inheritedname : String
指出 DisplayObject 的實體名稱。
IFlexDisplayObject
  numChildren : int
[唯讀] 傳回此物件的子系數量。
IContainer
 InheritedopaqueBackground : Object
會指定顯示物件是否不透明,並具有特定背景顏色。
IFlexDisplayObject
 Inheritedowner : DisplayObjectContainer
The owner of this IVisualElement object.
IUIComponent
 Inheritedparent : DisplayObjectContainer
[唯讀] 指出包含此顯示物件的 DisplayObjectContainer 物件。
IFlexDisplayObject
 InheritedpercentHeight : Number
Number that specifies the height of a component as a percentage of its parent's size.
IUIComponent
 InheritedpercentWidth : Number
Number that specifies the width of a component as a percentage of its parent's size.
IUIComponent
 Inheritedroot : DisplayObject
[唯讀] 對載入之 SWF 檔案的顯示物件而言,root 屬性就是該 SWF 檔案所呈現之顯示清單樹狀結構部分的最上層顯示物件。
IFlexDisplayObject
 Inheritedrotation : Number
指出 DisplayObject 實體的旋轉度數 (從該物件原本方向算起)。
IFlexDisplayObject
 Inheritedscale9Grid : Rectangle
目前產生效用的縮放格線。
IFlexDisplayObject
 InheritedscaleX : Number
指出從註冊點套用的物件水平縮放 (百分比)。
IFlexDisplayObject
 InheritedscaleY : Number
指出從物件註冊點套用的物件垂直縮放 (百分比)。
IFlexDisplayObject
 InheritedscrollRect : Rectangle
顯示物件的捲動矩形範圍。
IFlexDisplayObject
  soundTransform : flash.media:SoundTransform
控制此 Sprite 的聲音。
IContainer
 Inheritedstage : Stage
[唯讀] 顯示物件的「舞台」。
IFlexDisplayObject
 InheritedsystemManager : ISystemManager
A reference to the SystemManager object for this component.
IUIComponent
  tabChildren : Boolean
Determines whether the children of the object are tab enabled.
IContainer
  tabEnabled : Boolean
會指定這個物件是否在停駐點順序中。
IContainer
  tabIndex : int
會指定 SWF 檔中的物件停駐點順序。
IContainer
  textSnapshot : flash.text:TextSnapshot
[唯讀] 傳回此 DisplayObjectContainer 實體的 TextSnapshot 物件。
IContainer
 Inheritedtransform : flash.geom:Transform
這是一個物件,具有和顯示物件的矩陣、顏色轉換和像素邊界有關的屬性。
IFlexDisplayObject
 InheritedtweeningProperties : Array
Used by EffectManager.
IUIComponent
  useHandCursor : Boolean
指示當指標滑入 Sprite,且其 buttonMode 屬性設為 true 時,是否要出現指示手掌 (手掌游標) 的 Boolean 值。
IContainer
  verticalScrollPosition : Number
The current position of the vertical scroll bar.
IContainer
  viewMetrics : EdgeMetrics
[唯讀] Returns an object that has four properties: left, top, right, and bottom.
IContainer
 Inheritedvisible : Boolean
不管是否看得見顯示物件。
IFlexDisplayObject
 Inheritedwidth : Number
會指出顯示物件的寬度,以像素為單位。
IFlexDisplayObject
 Inheritedx : Number
指出 DisplayObject 實體相對於父輩 DisplayObjectContainer 之區域座標的 x 座標。
IFlexDisplayObject
 Inheritedy : Number
指出 DisplayObject 實體相對於父輩 DisplayObjectContainer 之區域座標的 y 座標。
IFlexDisplayObject
公用方法
 方法定義自
  
將 DisplayObject 子實體加入至此 DisplayObjectContainer 實體。
IContainer
  
將 DisplayObject 子實體加入至此 DisplayObjectContainer 實體。
IContainer
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
會在 EventDispatcher 物件註冊事件偵聽程式,以便讓偵聽程式收到事件的通知。
IEventDispatcher
  
指出安全性限制是否會造成傳回的清單 (可用指定的 point 點呼叫 DisplayObjectContainer.getObjectsUnderPoint() 方法來取得) 省略任何顯示物件。
IContainer
  
判斷指定的顯示物件是否為 DisplayObjectContainer 實體的子系,或為實體本身。
IContainer
 Inherited
會將事件傳送到事件流程。
IEventDispatcher
 Inherited
getBounds(targetCoordinateSpace:DisplayObject):Rectangle
傳回可定義顯示物件區域 (相對於 targetCoordinateSpace 物件的座標系統) 的矩形。
IFlexDisplayObject
  
傳回存在於指定索引位置的子顯示物件實體。
IContainer
  
傳回具有指定名稱的子顯示物件。
IContainer
  
傳回 child DisplayObject 實體的索引位置。
IContainer
 Inherited
A convenience method for determining whether to use the explicit or measured height
IUIComponent
 Inherited
A convenience method for determining whether to use the explicit or measured width
IUIComponent
  
傳回位於指定點底下,且屬於此 DisplayObjectContainer 實體之子系 (或孫系,以下類推) 的物件陣列。
IContainer
 Inherited
getRect(targetCoordinateSpace:DisplayObject):Rectangle
根據 targetCoordinateSpace 參數所定義的座標系統,並排除形狀上的任何筆畫,傳回可定義顯示物件邊界的矩形。
IFlexDisplayObject
 Inherited
將 point 物件從「舞台」(全域) 座標轉換成顯示物件的 (區域) 座標。
IFlexDisplayObject
 Inherited
會檢查 EventDispatcher 物件是否有對特定的事件類型註冊偵聽程式。
IEventDispatcher
 Inherited
評估顯示物件的範圍框,看它是否與 obj 顯示物件的範圍框重疊或相交。
IFlexDisplayObject
 Inherited
hitTestPoint(x:Number, y:Number, shapeFlag:Boolean = false):Boolean
評估顯示物件,看它是否與 x 和 y 參數所指定的點重疊或相交。
IFlexDisplayObject
 Inherited
Initialize the object.
IUIComponent
 Inherited
將 point 物件從顯示物件的 (區域) 座標轉換成「舞台」(全域) 座標。
IFlexDisplayObject
 Inherited
Moves this object to the specified x and y coordinates.
IFlexDisplayObject
 Inherited
owns(displayObject:DisplayObject):Boolean
Returns true if the chain of owner properties points from child to this UIComponent.
IUIComponent
 Inherited
Called by Flex when a UIComponent object is added to or removed from a parent.
IUIComponent
  
將指定的 child DisplayObject 實體從 DisplayObjectContainer 實體的子清單中移除。
IContainer
  
從 DisplayObjectContainer 子清單中的指定索引位置移除子 DisplayObject。
IContainer
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
會從 EventDispatcher 物件移除偵聽程式。
IEventDispatcher
 Inherited
setActualSize(newWidth:Number, newHeight:Number):void
Sets the actual size of this object.
IFlexDisplayObject
  
變更顯示物件容器中現有子系的位置。
IContainer
 Inherited
setVisible(value:Boolean, noEvent:Boolean = false):void
Called when the visible property changes.
IUIComponent
  
startDrag(lockCenter:Boolean = false, bounds:Rectangle = null):void
讓使用者拖曳指定的 sprite。
IContainer
  
結束 startDrag() 方法。
IContainer
  
替換兩個指定子物件的 z 順序 (深度階層,由前至後順序)。
IContainer
  
swapChildrenAt(index1:int, index2:int):void
在子清單的兩個指定索引位置,替換子物件的 z 順序 (深度階層,由前至後順序)。
IContainer
 Inherited
檢查此 EventDispatcher 物件是否已註冊事件偵聽程式,或者此物件的任何祖系已為特定事件類型註冊事件偵聽程式。
IEventDispatcher
屬性詳細資訊

buttonMode

屬性
buttonMode:Boolean

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

可指定此 sprite 的按鈕模式。 若為 true,則此 Sprite 將執行按鈕般的行為,也就是說,它會在指標通過 Sprite 上方時觸發顯示手掌游標,而且如果 Enter 或空格鍵在 Sprite 成為焦點時按下,還可以接收 click 事件。您可以先將 useHandCursor 屬性設為 false,這樣一來,指標就會顯示出來,同時抑制手掌游標不讓它顯示出來。

雖然使用 SimpleButton 類別來建立按鈕是比較好的作法,您還是可以使用 buttonMode 屬性,賦予 Sprite 一些按鈕般的功能。 若要將 Sprite 包含在定位停駐點順序中,請將 tabEnabled 屬性 (從 InteractiveObject 類別繼承而來,而且預設為 false) 設為 true。 此外,是否讓您的 Sprite 子系支援啟用使用者輸入動作,也需要納入考量。大部分按鈕都無法針對其子物件支援啟用使用者輸入互動,因為這樣會讓事件流程混淆。若要針對所有子物件停用使用者輸入互動,您必須將 mouseChildren 屬性 (繼承自 DisplayObjectContainer 類別) 設為 false

如果您使用 MovieClip 類別 (Sprite 類別的子類別) 的 buttonMode 屬性,您的按鈕可能會帶有其它附加的功能。 如果您納入 labeled _up、labeled_over,以及 labeled_down 的影格,則 Flash Player 會提供自動狀態變更 (與舊版 ActionScript 中提供給影片片段做為按鈕使用的功能相似)。 這些自動狀態變更無法提供 sprite 使用,因為它們沒有時間軸,因此也沒有可以加上標籤的影格。



實作
    public function get buttonMode():Boolean
    public function set buttonMode(value:Boolean):void

creatingContentPane

屬性 
creatingContentPane:Boolean

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

Containers use an internal content pane to control scrolling. The creatingContentPane is true while the container is creating the content pane so that some events can be ignored or blocked.



實作
    public function get creatingContentPane():Boolean
    public function set creatingContentPane(value:Boolean):void

defaultButton

屬性 
defaultButton:IFlexDisplayObject

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

The Button control designated as the default button for the container. When controls in the container have focus, pressing the Enter key is the same as clicking this Button control.



實作
    public function get defaultButton():IFlexDisplayObject
    public function set defaultButton(value:IFlexDisplayObject):void

doubleClickEnabled

屬性 
doubleClickEnabled:Boolean

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

指定物件是否接收 doubleClick 事件。 預設值為 false,也就是說,InteractiveObject 依預設無法接收 doubleClick 事件。 如果將 doubleClickEnabled 屬性設為 true,則實體會接收到其範圍內的 doubleClick 事件。 InteractiveObject 實體的 mouseEnabled 屬性必須同時設為 true,這樣物件才能接收 doubleClick 事件。

設定這個屬性不會傳送任何事件。 您必須使用 addEventListener() 方法來加入 doubleClick 事件所需的事件偵聽程式。



實作
    public function get doubleClickEnabled():Boolean
    public function set doubleClickEnabled(value:Boolean):void

dropTarget

屬性 
dropTarget:DisplayObject  [唯讀]

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

指定要將 sprite 拖曳至或丟棄至哪個顯示物件上。



實作
    public function get dropTarget():DisplayObject

focusManager

屬性 
focusManager:IFocusManager  [唯讀]

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

Gets the FocusManager that controls focus for this component and its peers. Each popup has its own focus loop and therefore its own instance of a FocusManager. To make sure you're talking to the right one, use this method.



實作
    public function get focusManager():IFocusManager

focusRect

屬性 
focusRect:Object

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

會指定這個物件是否會顯示焦點矩形。 它可以接受下列三個值中的其中一個:truefalsenulltruefalse 值會如預期方式運作,指定是否顯示焦點矩形。null 值表示此物件會遵循舞台的 stageFocusRect 屬性。



實作
    public function get focusRect():Object
    public function set focusRect(value:Object):void

graphics

屬性 
graphics:Graphics  [唯讀]

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

指定屬於此 sprite 物件的 Graphics 物件,其中可能會產生向量繪圖命令。



實作
    public function get graphics():Graphics

hitArea

屬性 
hitArea:Sprite

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

指定用來當作 sprite 作用區域的另一個 sprite。 如果 hitArea 屬性不存在,或者其值為 nullundefined,會將 Sprite 本身當作作用區域。 hitArea 屬性的值可以是 Sprite 物件的參照。

您可以隨時更改 hitArea 屬性;修改後的 Sprite 會立即採用新的作用區域行為指令。 被指定當成感應區的 Sprite 不一定要看得見;即使看不見它的圖像形狀,仍然會偵測為感應區。

注意: 您必須將指定為作用區域的 Sprite 之 mouseEnabled 屬性設為 false, 否則,您的 Sprite 按鈕可能無法運作,因為指定為感應區的 Sprite 會接收使用者輸入事件,而不是您的 Sprite 按鈕。



實作
    public function get hitArea():Sprite
    public function set hitArea(value:Sprite):void

horizontalScrollPosition

屬性 
horizontalScrollPosition:Number

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

The current position of the horizontal scroll bar. This is equal to the distance in pixels between the left edge of the scrollable surface and the leftmost piece of the surface that is currently visible.



實作
    public function get horizontalScrollPosition():Number
    public function set horizontalScrollPosition(value:Number):void

mouseChildren

屬性 
mouseChildren:Boolean

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

判斷物件的子系是否支援啟用滑鼠或使用者輸入裝置。如果啟用某個物件,則使用者可以使用滑鼠或使用者輸入裝置,與其進行互動。預設值為 true

當您使用 Sprite 類別 (而不是使用 SimpleButton 類別) 來建立按鈕時,這個方法就會很有用。 當您使用 Sprite 實體來建立按鈕時,可以選擇使用 addChild() 方法加入額外的 Sprite 實體來裝飾按鈕。 此程序可能會造成未預期的滑鼠事件行為,因為當做子系加入的 Sprite 實體可能會在您預期父輩實體將成為目標物件時,成為滑鼠事件的目標物件。 為了確保父輩實體能夠當作滑鼠事件的目標物件來運作,可以將父輩實體的 mouseChildren 屬性設為 false

設定這個屬性不會傳送任何事件。 您必須使用 addEventListener() 方法來建立互動式功能。



實作
    public function get mouseChildren():Boolean
    public function set mouseChildren(value:Boolean):void

mouseEnabled

屬性 
mouseEnabled:Boolean

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

指定此物件是否接收滑鼠或其他使用者輸入及訊息。預設值為 true,也就是說,任何位於顯示清單上的 InteractiveObject 實體,依預設都會接收滑鼠事件或其他使用者輸入事件。如果 mouseEnabled 設定成 false,則此實體不會接收任何滑鼠事件 (或其他使用者輸入事件,例如鍵盤事件)。在顯示清單上,此實體的任何子系都不會受到影響。 若要變更顯示清單上某個物件的所有子系之 mouseEnabled 行為指令,請使用 flash.display.DisplayObjectContainer.mouseChildren

設定這個屬性不會傳送任何事件。 您必須使用 addEventListener() 方法來建立互動式功能。



實作
    public function get mouseEnabled():Boolean
    public function set mouseEnabled(value:Boolean):void

numChildren

屬性 
numChildren:int  [唯讀]

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

傳回此物件的子系數量。



實作
    public function get numChildren():int

soundTransform

屬性 
soundTransform:flash.media:SoundTransform

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

控制此 Sprite 的聲音。

注意:此屬性不會影響 HTMLControl 物件中的 HTML 內容 (在 Adobe AIR 中)。



實作
    public function get soundTransform():flash.media:SoundTransform
    public function set soundTransform(value:flash.media:SoundTransform):void

tabChildren

屬性 
tabChildren:Boolean

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

Determines whether the children of the object are tab enabled.

Note: Do not use this property with Flex. Instead, use the UIComponent.hasFocusableChildren property.



實作
    public function get tabChildren():Boolean
    public function set tabChildren(value:Boolean):void

相關 API 元素

tabEnabled

屬性 
tabEnabled:Boolean

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

會指定這個物件是否在停駐點順序中。 如果此物件在定位停駐點順序中,則其數值為 true,否則為 false。 根據預設,除了下列情況以外,這個值都為 false

  • 對於 SimpleButton 物件,這個值為 true
  • 對於具有 type = "input" 的 TextField 物件,這個值為 true
  • 對於 Sprite 物件或具有 buttonMode = true 的 MovieClip 物件,這個值為 true



實作
    public function get tabEnabled():Boolean
    public function set tabEnabled(value:Boolean):void

tabIndex

屬性 
tabIndex:int

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

會指定 SWF 檔中的物件停駐點順序。 tabIndex 屬性預設為 -1,也就是說該物件沒有設定任何定位停駐點索引。

如果目前該 SWF 檔所顯示的任何物件含有 tabIndex 屬性,自動定位停駐點順序便會停用,而定位停駐點的順序會從物件在 SWF 檔中的 tabIndex 屬性開始計算。 自訂定位停駐點順序只會包含具有 tabIndex 屬性的物件。

tabIndex 屬性可以是非負值的整數。 物件是根據它們的 tabIndex 屬性,依遞增順序排列。 tabIndex 值為 1 的物件會排在 tabIndex 值為 2 的物件前面。 請勿對多個物件使用相同的 tabIndex 值。

tabIndex 屬性所定義的自訂定位停駐點順序是「平面」。 也就是說,SWF 檔中物件的階層架構關係是被忽略的。 該 SWF 檔中具有 tabIndex 屬性的所有物件都是依照定位停駐點順序放置的;這個定位停駐點順序是由 tabIndex 值的順序來決定。

注意:若要為 TLFTextField 實體設定停駐點順序,請將 TLFTextField 的顯示物件子系轉換為 InteractiveObject,然後設定 tabIndex 屬性。例如:

	 InteractiveObject(tlfInstance.getChildAt(1)).tabIndex = 3;
	 
若要從 TLFTextField 物件之三個實體的預設值反轉停駐點順序 (tlfInstance1tlfInstance2tlfInstance3),請使用:
	 InteractiveObject(tlfInstance1.getChildAt(1)).tabIndex = 3;
	 InteractiveObject(tlfInstance2.getChildAt(1)).tabIndex = 2;
	 InteractiveObject(tlfInstance3.getChildAt(1)).tabIndex = 1;
	 



實作
    public function get tabIndex():int
    public function set tabIndex(value:int):void

textSnapshot

屬性 
textSnapshot:flash.text:TextSnapshot  [唯讀]

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

傳回此 DisplayObjectContainer 實體的 TextSnapshot 物件。



實作
    public function get textSnapshot():flash.text:TextSnapshot

useHandCursor

屬性 
useHandCursor:Boolean

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

指示當指標滑入 Sprite,且其 buttonMode 屬性設為 true 時,是否要出現指示手掌 (手掌游標) 的 Boolean 值。useHandCursor 屬性的預設值是 true。如果 useHandCursor 設為 true,當指標滑入按鈕 Sprite 上方時,便會顯示按鈕所作用的指示手掌。如果 useHandCursorfalse,則會改用箭頭游標。

您可以隨時更改 useHandCursor 屬性;修改後的 Sprite 會立即採用新的游標行為指令。

注意:在 Flex 或 Flash Builder 中,如果您的 Sprite 具有子 Sprite,便可以將 mouseChildren 屬性設定為 false。例如,您要在 Flex <mx:Label> 控制項上方顯示手掌游標,請將 useHandCursorbuttonMode 屬性設定為 true,以及將 mouseChildren 屬性設定為 false



實作
    public function get useHandCursor():Boolean
    public function set useHandCursor(value:Boolean):void

verticalScrollPosition

屬性 
verticalScrollPosition:Number

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

The current position of the vertical scroll bar. This is equal to the distance in pixels between the top edge of the scrollable surface and the topmost piece of the surface that is currently visible.



實作
    public function get verticalScrollPosition():Number
    public function set verticalScrollPosition(value:Number):void

viewMetrics

屬性 
viewMetrics:EdgeMetrics  [唯讀]

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

Returns an object that has four properties: left, top, right, and bottom. The value of each property equals the thickness of the chrome (visual elements) around the edge of the container.

The chrome includes the border thickness. If the horizontalScrollPolicy or verticalScrollPolicy property value is ScrollPolicy.ON, the chrome also includes the thickness of the corresponding scroll bar. If a scroll policy is ScrollPolicy.AUTO, the chrome measurement does not include the scroll bar thickness, even if a scroll bar is displayed.

Subclasses of Container should override this method, so that they include other chrome to be taken into account when positioning the Container's children. For example, the viewMetrics property for the Panel class should return an object whose top property includes the thickness of the Panel container's title bar.



實作
    public function get viewMetrics():EdgeMetrics
方法詳細資訊

addChild

()方法
public function addChild(child:DisplayObject):DisplayObject

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

將 DisplayObject 子實體加入至此 DisplayObjectContainer 實體。 此子系會加入到此 DisplayObjectContainer 實體中所有其它子系的前面 (上層)。(若要將子系加入至特定的索引位置,請使用 addChildAt() 方法)。

如果您加入一個已經包含不同顯示物件容器的子物件做為父物件,則物件會從其它顯示物件容器的子清單中移除。

注意:命令 stage.addChild() 會導致發佈的 SWF 檔案發生問題,包括安全性問題以及與其他載入 SWF 檔案的衝突。無論您載入多少 SWF 檔案到執行階段中 ,Flash 執行階段實體中只會有一個舞台。因此,在一般情況下不該將物件直接新增至舞台。舞台唯一該包含的物件就是根物件。建立一個 DisplayObjectContainer 來包含顯示清單中的所有項目。然後,視需要將 DisplayObjectContainer 新增至舞台。

參數

child:DisplayObject — The DisplayObject instance to add as a child of this DisplayObjectContainer instance.

傳回值
DisplayObject — The DisplayObject instance that you pass in the child parameter.

addChildAt

()方法 
public function addChildAt(child:DisplayObject, index:int):DisplayObject

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

將 DisplayObject 子實體加入至此 DisplayObjectContainer 實體。 子系會加入至指定的索引位置。 0 的索引代表位於此 DisplayObjectContainer 物件的顯示清單後面 (下層)。

例如,下列範例將說明三個加上 a、b 與 c 標籤的顯示物件,分別位於 0、2 與 1 的索引位置:

b 在 c 上面,c 在 a 上面

如果您加入一個已經包含不同顯示物件容器的子物件做為父物件,則物件會從其它顯示物件容器的子清單中移除。

參數

child:DisplayObject — The DisplayObject instance to add as a child of this DisplayObjectContainer instance.
 
index:int — The index position to which the child is added. If you specify a currently occupied index position, the child object that exists at that position and all higher positions are moved up one position in the child list.

傳回值
DisplayObject — The DisplayObject instance that you pass in the child parameter.

areInaccessibleObjectsUnderPoint

()方法 
public function areInaccessibleObjectsUnderPoint(point:Point):Boolean

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

指出安全性限制是否會造成傳回的清單 (可用指定的 point 點呼叫 DisplayObjectContainer.getObjectsUnderPoint() 方法來取得) 省略任何顯示物件。 根據預設,來自某個網域的內容無法存取另一個網域的物件,除非您呼叫 Security.allowDomain() 方法才能這麼做。如需有關安全性的詳細資訊,請參閱「Flash Player 開發人員中心」主題:安全性

point 參數位於「舞台」的座標空間,與顯示物件容器的座標空間可能不同 (除非顯示物件容器位於「舞台」)。 您可以使用 globalToLocal()localToGlobal() 方法,在這些座標空間之間轉換座標點。

參數

point:Point — The point under which to look.

傳回值
Booleantrue if the point contains child display objects with security restrictions.

contains

()方法 
public function contains(child:DisplayObject):Boolean

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

判斷指定的顯示物件是否為 DisplayObjectContainer 實體的子系,或為實體本身。 搜尋範圍包含了整個顯示清單 (包括此 DisplayObjectContainer 實體)。 孫系,或曾孫系 (以此類推) 每個都會傳回 true

參數

child:DisplayObject — The child object to test.

傳回值
Booleantrue if the child object is a child of the DisplayObjectContainer or the container itself; otherwise false.

getChildAt

()方法 
public function getChildAt(index:int):DisplayObject

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

傳回存在於指定索引位置的子顯示物件實體。

參數

index:int — The index position of the child object.

傳回值
DisplayObject — The child display object at the specified index position.

getChildByName

()方法 
public function getChildByName(name:String):DisplayObject

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

傳回具有指定名稱的子顯示物件。 如果有一個以上的子顯示物件擁有指定的名稱,則方法會傳回子清單中的第一個物件。

getChildAt() 方法的執行速度比 getChildByName() 方法來得快。 getChildAt() 方法可以存取快取陣列中的子系,而 getChildByName() 方法則是可以跨越連接清單來存取子系。

參數

name:String — The name of the child to return.

傳回值
DisplayObject — The child display object with the specified name.

getChildIndex

()方法 
public function getChildIndex(child:DisplayObject):int

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

傳回 child DisplayObject 實體的索引位置。

參數

child:DisplayObject — The DisplayObject instance to identify.

傳回值
int — The index position of the child display object to identify.

getObjectsUnderPoint

()方法 
public function getObjectsUnderPoint(point:Point):Array

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

傳回位於指定點底下,且屬於此 DisplayObjectContainer 實體之子系 (或孫系,以下類推) 的物件陣列。 任何因為安全理由而無法存取的子物件都會從傳回的陣列中省略掉。 若要判斷此安全性限制是否會影響到傳回的陣列,請呼叫 areInaccessibleObjectsUnderPoint() 方法。

point 參數位於「舞台」的座標空間,與顯示物件容器的座標空間可能不同 (除非顯示物件容器位於「舞台」)。 您可以使用 globalToLocal()localToGlobal() 方法,在這些座標空間之間轉換座標點。

參數

point:Point — The point under which to look.

傳回值
Array — An array of objects that lie under the specified point and are children (or grandchildren, and so on) of this DisplayObjectContainer instance.

removeChild

()方法 
public function removeChild(child:DisplayObject):DisplayObject

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

將指定的 child DisplayObject 實體從 DisplayObjectContainer 實體的子清單中移除。 移除的子系 parent 屬性是設為 null,而且如果子系沒有其它參照,物件就會被垃圾回收器移除。 任何位於 DisplayObjectContainer 子系上層的顯示物件,其索引位置會減掉 1。

垃圾回收器會重新分配未使用的記憶體空間。當變數或物件不再被參照使用,或是已經儲存至其它位置,則垃圾回收器會對記憶體空間進行清掃,掃除變數或物件之前佔用但已經沒有任何參照的記憶體空間。

參數

child:DisplayObject — The DisplayObject instance to remove.

傳回值
DisplayObject — The DisplayObject instance that you pass in the child parameter.

removeChildAt

()方法 
public function removeChildAt(index:int):DisplayObject

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

從 DisplayObjectContainer 子清單中的指定 index 位置移除子 DisplayObject。 移除的子系 parent 屬性是設為 null,而且如果子系沒有其它參照,物件就會被垃圾回收器移除。 任何位於 DisplayObjectContainer 子系上層的顯示物件,其索引位置會減掉 1。

垃圾回收器會重新分配未使用的記憶體空間。當變數或物件不再被參照使用,或是已經儲存至其它位置,則垃圾回收器會對記憶體空間進行清掃,掃除變數或物件之前佔用但已經沒有任何參照的記憶體空間。

參數

index:int — The child index of the DisplayObject to remove.

傳回值
DisplayObject — The DisplayObject instance that was removed.

setChildIndex

()方法 
public function setChildIndex(child:DisplayObject, index:int):void

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

變更顯示物件容器中現有子系的位置。 這樣會影響子物件的圖層。 例如,下列範例說明三個加上 a、b 與 c 標籤的顯示物件,分別位於 0、1 與 2 的索引位置:

c 在 b 上面,b 在 a 上面

當您使用 setChildIndex() 方法並指定已遭佔用的索引位置時,變更的位置只會介於顯示物件之前的位置和新位置之間,其它所有位置將維持不變。如果將子系移至比本身目前索引還「低」的索引位置,則兩者之間所有子系的索引參考都將「遞增」1。如果將子系移至比本身目前索引還「高」的索引位置,則兩者之間所有子系的索引參考都將「遞減」1。例如,如果上一個範例中的顯示物件容器名為 container,則您可以呼叫下列程式碼來切換加上 a 與 b 標籤的顯示物件位置:

container.setChildIndex(container.getChildAt(1), 0);

這個程式碼會產生如下所示的物件排列:

c 在 a 上面,a 在 b 上面

參數

child:DisplayObject — The child DisplayObject instance for which you want to change the index number.
 
index:int — The resulting index number for the child display object.

startDrag

()方法 
public function startDrag(lockCenter:Boolean = false, bounds:Rectangle = null):void

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

讓使用者拖曳指定的 sprite。 某個 Sprite 會在您呼叫 Sprite.stopDrag() 方法來明確停止拖曳它之前,或者在您啟用拖曳另一個 Sprite 之前,維持可拖曳的狀態。 您一次只能拖曳一個 sprite。

三維顯示物件會隨著指標移動,而且 Sprite.startDrag() 會將物件在顯示物件所定義的三維平面內移動。或者,如果顯示物件是二維物件,而且是三維物件的子物件,則二維物件會在三維父物件所定義的三維平面內移動。

參數

lockCenter:Boolean (default = false) — Specifies whether the draggable sprite is locked to the center of the pointer position (true), or locked to the point where the user first clicked the sprite (false).
 
bounds:Rectangle (default = null) — Value relative to the coordinates of the Sprite's parent that specify a constraint rectangle for the Sprite.

stopDrag

()方法 
public function stopDrag():void

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

結束 startDrag() 方法。 某個 Sprite 若是因為 startDrag() 方法成為可拖曳,則該 sprtie 將會維持可拖曳的狀態,直到加入 stopDrag() 方法、或是有另一個 sprtie 成為可拖曳為止。 您一次只能拖曳一個 sprite。

swapChildren

()方法 
public function swapChildren(child1:DisplayObject, child2:DisplayObject):void

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

替換兩個指定子物件的 z 順序 (深度階層,由前至後順序)。 顯示物件容器中的所有其它子物件都會保留在相同的索引位置。

參數

child1:DisplayObject — The first child object.
 
child2:DisplayObject — The second child object.

swapChildrenAt

()方法 
public function swapChildrenAt(index1:int, index2:int):void

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

在子清單的兩個指定索引位置,替換子物件的 z 順序 (深度階層,由前至後順序)。顯示物件容器中的所有其它子物件都會保留在相同的索引位置。

參數

index1:int — The index position of the first child object.
 
index2:int — The index position of the second child object.





[ X ]為什麼顯示英文?
「ActionScript 3.0 參考」的內容是以英文顯示

並非所有「ActionScript 3.0 參考」的內容都翻譯為所有語言。當語言元素未翻譯時,就會以英文顯示。例如,ga.controls.HelpBox 類別並沒有翻譯為任何語言。因此在參考的繁體中文版本中,ga.controls.HelpBox 類別就會以英文顯示。