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

ProLoader  - AS3 Flash

套件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 範例
法律聲明
套件fl.display
類別public class ProLoader
繼承ProLoader Inheritance Sprite Inheritance DisplayObjectContainer Inheritance InteractiveObject Inheritance DisplayObject Inheritance EventDispatcher Inheritance Object

語言版本: ActionScript 3.0
產品版本: Flash CS5.5
執行階段版本: AIR 1.0, Flash Player 9

ProLoader 類別會載入 SWF 檔案或影像。載入 Flash Professional 所產生的 SWF 檔案時,請使用 fl.display.ProLoader 而不要使用 flash.display.Loader。ProLoader 類別成員會反映 Loader 類別成員。ProLoader 不使用 LoaderInfo 物件,而是使用 ProLoaderInfo 物件。ProLoaderInfo 類別成員會反映 LoaderInfo 類別成員。

注意 ProLoader 不是 flash.display.Loader 的子類別。若要使用 ProLoader,您必須將所有的 Loader 類型參考更改為 ProLoader。

ProLoader 提供一致的載入體驗。對於使用 RSL 預先載入的 SWF 檔案尤其實用。例如,使用 TLF 文字的 SWF 檔案預設會使用 RSL 預先載入。在這些情況中,ProLoaderInfo 會在 RSL 預先載入完成且實際內容可供使用之前,延遲傳送 INIT 或 COMPLETE 事件。因此,content 屬性就可以存取實際內容。此外,ProLoader 還能協助您避免發生其他問題,例如:

  • 額外的 addedToStageremovedFromStage 事件
  • 載入第一個影格上錯誤父輩的內容 (適用於使用 Flash Professional CS5.5 或更新版本發佈至 Flash Player 10.2 或更新版本的內容)。

警告 特定 ProLoader 成員不支援所有執行階段版本。只在您的發佈 AIR 或 Flash Player 版本支援時這些成員時,才存取它們。否則,這些 API 會擲回執行階段錯誤。具有有限執行階段支援的成員包含下列方法和屬性:

  • unloadAndStop()
  • loadFilePromise()
  • uncaughtErrorEvents

請參閱每個 API 的參考主題,以驗證執行階段支援。



公用屬性
 屬性定義自
 InheritedaccessibilityImplementation : AccessibilityImplementation
對此 InteractiveObject 實體目前的輔助功能實作 (AccessibilityImplementation)。
InteractiveObject
 InheritedaccessibilityProperties : AccessibilityProperties
此顯示物件的目前輔助功能選項。
DisplayObject
 Inheritedalpha : Number
指出所指定物件的 Alpha 透明度值。
DisplayObject
 InheritedblendMode : String
來自 BlendMode 類別的值,會指定要使用何種混合模式。
DisplayObject
 InheritedblendShader : Shader
[唯寫] 設定用來混合前景和背景的著色器。
DisplayObject
 InheritedbuttonMode : Boolean
可指定此 sprite 的按鈕模式。
Sprite
 InheritedcacheAsBitmap : Boolean
如果設定為 true,Flash 執行階段會快取顯示物件的內部點陣圖表示法。
DisplayObject
 Inherited    cacheAsBitmapMatrix : Matrix
如果為非 null,當 cacheAsBitmap 設定為 true 時,這個 Matrix 物件會定義顯示物件的顯示方法。
DisplayObject
 Inheritedconstructor : Object
類別物件的參照或是特定物件實體的建構函數。
Object
  content : DisplayObject
[唯讀] 包含使用 load() 或 loadBytes() 方法載入之 SWF 檔案或影像檔 (JPG、PNG、或 GIF) 的根顯示物件。
ProLoader
  contentLoaderInfo : ProLoaderInfo
[唯讀] 傳回與載入中物件相對應的 ProLoaderInfo 物件。
ProLoader
 InheritedcontextMenu : NativeMenu
指定與此物件有關聯的快顯選單。
InteractiveObject
 InheriteddoubleClickEnabled : Boolean
會指定物件是否會收到 doubleClick 事件。
InteractiveObject
 InheriteddropTarget : DisplayObject
[唯讀] 指定要將 sprite 拖曳至或丟棄至哪個顯示物件上。
Sprite
 Inheritedfilters : Array
索引的陣列,其中包含目前和顯示物件相關的每個濾鏡物件。
DisplayObject
 InheritedfocusRect : Object
會指定這個物件是否會顯示焦點矩形。
InteractiveObject
 Inheritedgraphics : Graphics
[唯讀] 指定屬於此 sprite 物件的 Graphics 物件,其中可能會產生向量繪圖命令。
Sprite
 Inheritedheight : Number
會指出顯示物件的高度,以像素為單位。
DisplayObject
 InheritedhitArea : Sprite
指定用來當作 sprite 作用區域的另一個 sprite。
Sprite
 InheritedloaderInfo : LoaderInfo
[唯讀] 會傳回 LoaderInfo 物件,其中包含關於載入此顯示物件所屬之檔案的資訊。
DisplayObject
 Inheritedmask : DisplayObject
呼叫之顯示物件會以指定的 mask 物件遮蓋。
DisplayObject
 InheritedmetaData : Object
如果中繼資料是透過 PlaceObject4 標籤與 SWF 檔案中的這個 DisplayObject 實體一同儲存,則會取得 DisplayObject 實體的中繼資料物件。
DisplayObject
 InheritedmouseChildren : Boolean
判斷物件的子系是否支援啟用滑鼠或使用者輸入裝置。
DisplayObjectContainer
 InheritedmouseEnabled : Boolean
指定此物件是否接收滑鼠或其他使用者輸入及訊息。
InteractiveObject
 InheritedmouseX : Number
[唯讀] 指出滑鼠或使用者輸入裝置位置的 x 座標,以像素為單位。
DisplayObject
 InheritedmouseY : Number
[唯讀] 指出滑鼠或使用者輸入裝置位置的 y 座標,以像素為單位。
DisplayObject
 Inheritedname : String
指出 DisplayObject 的實體名稱。
DisplayObject
 InheritedneedsSoftKeyboard : Boolean
指定虛擬鍵盤 (螢幕上的軟體鍵盤) 是否應在此 InteractiveObject 實體接收到焦點時顯示。
InteractiveObject
 InheritednumChildren : int
[唯讀] 傳回此物件的子系數量。
DisplayObjectContainer
 InheritedopaqueBackground : Object
會指定顯示物件是否不透明,並具有特定背景顏色。
DisplayObject
 Inheritedparent : DisplayObjectContainer
[唯讀] 指出包含此顯示物件的 DisplayObjectContainer 物件。
DisplayObject
 Inheritedroot : DisplayObject
[唯讀] 對載入之 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
 InheritedscrollRect : Rectangle
顯示物件的捲動矩形範圍。
DisplayObject
 Inherited    softKeyboard : String
控制軟體鍵盤的外觀。
InteractiveObject
 InheritedsoftKeyboardInputAreaOfInterest : Rectangle
定義顯示軟體鍵盤時,應保留於螢幕上的區域 (iOS 未提供)。
InteractiveObject
 InheritedsoundTransform : flash.media:SoundTransform
控制此 Sprite 的聲音。
Sprite
 Inheritedstage : Stage
[唯讀] 顯示物件的「舞台」。
DisplayObject
 InheritedtabChildren : Boolean
判斷物件的子系是否支援啟用定位鍵。
DisplayObjectContainer
 InheritedtabEnabled : Boolean
會指定這個物件是否在停駐點順序中。
InteractiveObject
 InheritedtabIndex : int
會指定 SWF 檔中的物件停駐點順序。
InteractiveObject
 InheritedtextSnapshot : flash.text:TextSnapshot
[唯讀] 傳回此 DisplayObjectContainer 實體的 TextSnapshot 物件。
DisplayObjectContainer
 Inheritedtransform : flash.geom:Transform
這是一個物件,具有和顯示物件的矩陣、顏色轉換和像素邊界有關的屬性。
DisplayObject
  uncaughtErrorEvents : EventDispatcher
[唯讀] 是一個物件,當這個 ProLoader 物件之 SWF 檔案的程式碼發生未處理的錯誤時,這個物件就會傳送 uncaughtError 事件。
ProLoader
 InheriteduseHandCursor : Boolean
指示當指標滑入 Sprite,且其 buttonMode 屬性設為 true 時,是否要出現指示手掌 (手掌游標) 的 Boolean 值。
Sprite
 Inheritedvisible : Boolean
不管是否看得見顯示物件。
DisplayObject
 Inheritedwidth : Number
會指出顯示物件的寬度,以像素為單位。
DisplayObject
 Inheritedx : Number
指出 DisplayObject 實體相對於父輩 DisplayObjectContainer 之區域座標的 x 座標。
DisplayObject
 Inheritedy : Number
指出 DisplayObject 實體相對於父輩 DisplayObjectContainer 之區域座標的 y 座標。
DisplayObject
 Inheritedz : Number
表示 DisplayObject 實體相對於 3D 父輩容器的 z 座標位置 (沿著 z 軸)。
DisplayObject
公用方法
 方法定義自
  
建立一個 ProLoader 物件,可用來載入檔案 (如 SWF、JPEG、GIF,或是 PNG 檔)。
ProLoader
 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
  
取消 ProLoader 實體目前正在進行的 load() 方法作業。
ProLoader
 Inherited
判斷指定的顯示物件是否為 DisplayObjectContainer 實體的子系,或為實體本身。
DisplayObjectContainer
 Inherited
會將事件傳送到事件流程。
EventDispatcher
 Inherited
getBounds(targetCoordinateSpace:DisplayObject):Rectangle
傳回可定義顯示物件區域 (相對於 targetCoordinateSpace 物件的座標系統) 的矩形。
DisplayObject
 Inherited
傳回存在於指定索引位置的子顯示物件實體。
DisplayObjectContainer
 Inherited
傳回具有指定名稱的子顯示物件。
DisplayObjectContainer
 Inherited
傳回 child DisplayObject 實體的索引位置。
DisplayObjectContainer
 Inherited
傳回位於指定點底下,且屬於此 DisplayObjectContainer 實體之子系 (或孫系,以下類推) 的物件陣列。
DisplayObjectContainer
 Inherited
getRect(targetCoordinateSpace:DisplayObject):Rectangle
根據 targetCoordinateSpace 參數所定義的座標系統,並排除形狀上的任何筆畫,傳回可定義顯示物件邊界的矩形。
DisplayObject
 Inherited
將 point 物件從「舞台」(全域) 座標轉換成顯示物件的 (區域) 座標。
DisplayObject
 Inherited
將二維點從「舞台」(全域) 座標轉換為三維顯示物件的 (區域) 座標。
DisplayObject
 Inherited
會檢查 EventDispatcher 物件是否有對特定的事件類型註冊偵聽程式。
EventDispatcher
 Inherited
指出物件是否有已定義的指定屬性。
Object
 Inherited
評估顯示物件的範圍框,看它是否與 obj 顯示物件的範圍框重疊或相交。
DisplayObject
 Inherited
hitTestPoint(x:Number, y:Number, shapeFlag:Boolean = false):Boolean
評估顯示物件,看它是否與 x 和 y 參數所指定的點重疊或相交。
DisplayObject
 Inherited
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。
Object
  
load(request:URLRequest, context:LoaderContext = null):void
將 SWF、JPEG、漸進式 JPEG、不含動畫的 GIF,或 PNG 檔載入此 ProLoader 物件的子物件中。
ProLoader
  
loadBytes(bytes:ByteArray, context:LoaderContext = null):void
載入儲存在 ByteArray 物件中的二進位資料。
ProLoader
  
loadFilePromise(promise:Object, context:LoaderContext = null):void
透過 promise 參數載入 IFilePromise 實體。
ProLoader
 Inherited
將三維顯示物件的 (區域) 座標的三維點轉換為「舞台」(全域) 座標中的二維點。
DisplayObject
 Inherited
將 point 物件從顯示物件的 (區域) 座標轉換成「舞台」(全域) 座標。
DisplayObject
 Inherited
指出指定的屬性是否存在,以及是否可列舉。
Object
 Inherited
將指定的 child DisplayObject 實體從 DisplayObjectContainer 實體的子清單中移除。
DisplayObjectContainer
 Inherited
從 DisplayObjectContainer 子清單中的指定索引位置移除子 DisplayObject。
DisplayObjectContainer
 Inherited
removeChildren(beginIndex:int = 0, endIndex:int = 0x7fffffff):void
將所有 child DisplayObject 實體從 DisplayObjectContainer 實體的子清單中移除。
DisplayObjectContainer
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
會從 EventDispatcher 物件移除偵聽程式。
EventDispatcher
 Inherited
升起顯示虛擬鍵盤。
InteractiveObject
 Inherited
變更顯示物件容器中現有子系的位置。
DisplayObjectContainer
 Inherited
為迴圈作業設定動態屬性的可用性。
Object
 Inherited
startDrag(lockCenter:Boolean = false, bounds:Rectangle = null):void
讓使用者拖曳指定的 sprite。
Sprite
 Inherited
startTouchDrag(touchPointID:int, lockCenter:Boolean = false, bounds:Rectangle = null):void
讓使用者將指定的 Sprite 拖曳至觸控裝置上。
Sprite
 Inherited
遞迴停止執行所有 MovieClips 的時間軸根源於此物件。
DisplayObjectContainer
 Inherited
結束 startDrag() 方法。
Sprite
 Inherited
stopTouchDrag(touchPointID:int):void
結束觸控裝置使用的 startTouchDrag() 方法。
Sprite
 Inherited
替換兩個指定子物件的 z 順序 (深度階層,由前至後順序)。
DisplayObjectContainer
 Inherited
swapChildrenAt(index1:int, index2:int):void
在子清單的兩個指定索引位置,替換子物件的 z 順序 (深度階層,由前至後順序)。
DisplayObjectContainer
 Inherited
傳回代表此物件的字串,根據地區特定慣例進行格式化。
Object
 Inherited
會傳回指定之物件的字串形式。
Object
  
移除使用 load() 方法載入之 ProLoader 物件的子系。
ProLoader
 Inherited
會傳回指定之物件的基本值。
Object
 Inherited
檢查此 EventDispatcher 物件是否已註冊事件偵聽程式,或者此物件的任何祖系已為特定事件類型註冊事件偵聽程式。
EventDispatcher
事件
 事件 摘要 定義自
 Inherited[廣播事件] 當 Flash Player 或 AIR 應用程式取得作業系統焦點並成為作用中時傳送。EventDispatcher
 Inherited當顯示物件加入顯示清單中時傳送。DisplayObject
 Inherited會在顯示物件加入舞台上的顯示清單時,以直接或是透過加入包含該顯示物件之子樹狀結構的方式傳送。DisplayObject
 Inherited當使用者從文字快顯選單中選取「清除」(或「刪除」) 時傳送。InteractiveObject
 Inherited會當使用者在相同的 InteractiveObject 上方按下並放開使用者的指向裝置主按鈕時傳送。InteractiveObject
 Inherited
    contextMenu
當使用者手勢在 AIR 應用程式中觸發與此互動式物件相關聯的快顯選單時傳送。InteractiveObject
 Inherited當使用者針對複製作業啟動平台特有的快速鍵組合或從文字快顯選單中選取「複製」時傳送。InteractiveObject
 Inherited當使用者針對剪下作業啟動平台特有的快速鍵組合或從文字快顯選單中選取「剪下」時傳送。InteractiveObject
 Inherited[廣播事件] 當 Flash Player 或 AIR 應用程式失去作業系統焦點並成為非作用中時傳送。EventDispatcher
 Inherited在 InteractiveObject 物件的 doubleClickEnabled 旗標設為 true 的情況下,當使用者在相同的物件上方連續兩次快速按下並放開指標裝置主要按鈕時傳送。InteractiveObject
 Inherited[廣播事件] 當播放磁頭進入新影格時傳送。DisplayObject
 Inherited[廣播事件] 當播放磁頭結束目前影格時傳送。DisplayObject
 Inherited當顯示物件取得焦點之後傳送。InteractiveObject
 Inherited當顯示物件失去焦點時傳送。InteractiveObject
 Inherited[廣播事件] 在影格顯示物件的建構函式執行之後,且影格指令碼執行之前傳送。DisplayObject
 Inherited當使用者沿著觸控面與 InteractiveObject 實體建立接觸點 (例如沿著 Apple TV 的 Siri Remote 觸控面點選),某些裝置可能也會將此接觸解譯為數個觸控事件的組合。InteractiveObject
 Inherited當使用在觸控裝置上的同一個 InteractiveObject 實體上按下兩個接觸點後送出 (例如在行動電話或平板電腦觸控螢幕的顯示物件上方,以兩支手指按下後鬆開)。InteractiveObject
 Inherited當使用者在觸控裝置上,將接觸點移動到 InteractiveObject 實體上方後傳送 (例如,在行動電話或平板電腦觸控螢幕的顯示物件上,由左向右移動手指)。InteractiveObject
 Inherited當使用者在 InteractiveObject 實體的接觸點上做出旋轉手勢後傳送 (例如兩指觸摸行動電話或平板電腦的觸控螢幕,然後手指在顯示物件上旋轉)。InteractiveObject
 Inherited當使用者在與 InteractiveObject 實體的某個接觸點上做出揮動手勢後傳送 (例如,三指併在一起觸碰行動電話或平板電腦的觸控螢幕,然後在顯示物件上快速平行移動手指)。InteractiveObject
 Inherited當使用者與 InteractiveObject 實體建立接觸點,然後在觸控裝置上點一下後送出 (例如,將多根手指放到行動電話或平板電腦觸控螢幕的顯示物件上以開啟選單,然後其中一根手點一下,選取選單項目)。InteractiveObject
 Inherited當使用者在 InteractiveObject 實體的某個接觸點上做出放大縮小手勢後傳送 (例如兩指併在一起觸摸行動電話或平板電腦的觸控螢幕,然後手指在顯示物件上快速張開)。InteractiveObject
 Inherited這個事件會送出至任何支援 IME 內嵌輸入的用戶端應用程式。InteractiveObject
 Inherited會當使用者按下按鍵時傳送。InteractiveObject
 Inherited當使用者嘗試使用鍵盤瀏覽變更焦點時傳送。InteractiveObject
 Inherited會當使用者放開按鍵時傳送。InteractiveObject
 Inherited當使用者在相同的 InteractiveObject 上方按下並放開使用者的指向裝置中間按鈕時傳送。InteractiveObject
 Inherited當使用者將指向裝置的中間按鈕移至 InteractiveObject 實體上方按下時傳送。InteractiveObject
 Inherited當使用者將指向裝置按鈕移至 InteractiveObject 實體上方放開時傳送。InteractiveObject
 Inherited當使用者將指向裝置按鈕移至 InteractiveObject 實體上方按下時傳送。InteractiveObject
 Inherited會當使用者嘗試使用指向裝置變更焦點時傳送。InteractiveObject
 Inherited會當指向裝置停在 InteractiveObject 上方的情況下使用者將其移動時傳送。InteractiveObject
 Inherited會當使用者將指向裝置移開 InteractiveObject 實體時傳送。InteractiveObject
 Inherited會當使用者將指向裝置移至 InteractiveObject 實體上方時傳送。InteractiveObject
 Inherited當使用者將指向裝置按鈕移至 InteractiveObject 實體上方放開時傳送。InteractiveObject
 Inherited當滑鼠滾輪在 InteractiveObject 實體上方轉動時傳送。InteractiveObject
 Inherited當使用者釋放手勢時,由拖曳初始程式 InteractiveObject 傳送。InteractiveObject
 Inherited已在目標 InteractiveObject 上放下拖曳的物件,而且已呼叫 DragManager.acceptDragDrop() 接受該放開的資料時,由此目標 InteractiveObject 傳送。InteractiveObject
 Inherited當手勢進入 InteractiveObject 的邊界時,由此 InteractiveObject 傳送。InteractiveObject
 Inherited當手勢離開 InteractiveObject 的邊界時,由此 InteractiveObject 傳送。InteractiveObject
 Inherited當拖曳手勢還留在 InteractiveObject 的邊界內,由此 InteractiveObject 持續傳送。InteractiveObject
 Inherited在呼叫 DragManager.doDrag() 進行拖曳作業初期,由指定做為拖曳初始程式的 InteractiveObject 傳送。InteractiveObject
 Inherited在呼叫 DragManager.doDrag() 進行拖曳作業期間,由指定做為拖曳初始程式的 InteractiveObject 傳送。InteractiveObject
 Inherited當使用者針對貼上作業啟動平台特有的快速鍵組合或從文字快顯選單中選取「貼上」時傳送。InteractiveObject
 Inherited在使用者將作用中觸控筆往下移至超過螢幕鄰近偵測邊框時傳送。InteractiveObject
 Inherited
    proximityEnd
在使用者將作用中觸控筆提到螢幕鄰近偵測邊框時傳送。InteractiveObject
 Inherited在使用者將作用中觸控筆移到螢幕上方,而其餘仍在鄰近偵測邊框內時傳送。InteractiveObject
 Inherited
    proximityOut
在使用者將作用中觸控筆移出這個 InteractiveObject 之外,而其餘仍在螢幕的鄰近偵測邊框內時傳送。InteractiveObject
 Inherited在使用者直接將作用中觸控筆移到這個 InteractiveObject 上方,而其餘仍在螢幕的鄰近偵測邊框內時傳送。InteractiveObject
 Inherited在使用者將作用中觸控筆移出這個 InteractiveObject 及其任一子系之外,而其餘仍在螢幕的鄰近偵測邊框內時傳送。InteractiveObject
 Inherited在使用者透過這個 InteractiveObject,從顯示清單中後代的物件樹狀結構之外移動作用中觸控筆時傳送 (而其餘仍在螢幕的鄰近偵測邊框內)。InteractiveObject
 Inherited當使用者第一次按下 InteractiveObject 實體上方的按鈕,然後將指向裝置滑出 InteractiveObject 實體之後即放開指向裝置上的按鈕時傳送。InteractiveObject
 Inherited會當顯示物件將要從顯示清單移除時傳送。DisplayObject
 Inherited會在顯示物件即將從顯示清單移除時,以直接或是透過移除包含該顯示物件之子樹狀結構的方式傳送。DisplayObject
 Inherited[廣播事件] 當顯示清單將要更新和顯示時傳送。DisplayObject
 Inherited當使用者在相同的 InteractiveObject 上方按下並放開使用者的指向裝置右邊按鈕時傳送。InteractiveObject
 Inherited當使用者將指向裝置按鈕移至 InteractiveObject 實體上方按下時傳送。InteractiveObject
 Inherited當使用者將指向裝置按鈕移至 InteractiveObject 實體上方放開時傳送。InteractiveObject
 Inherited會當使用者將指向裝置移開 InteractiveObject 實體時傳送。InteractiveObject
 Inherited會當使用者將指向裝置移至 InteractiveObject 實體上方時傳送。InteractiveObject
 Inherited當使用者針對全選作業啟動平台特有的快速鍵組合或從文字快顯選單中選取「全選」時傳送。InteractiveObject
 Inherited升起顯示軟體鍵盤之後立即傳送。InteractiveObject
 Inherited升起顯示軟體鍵盤前立即傳送。InteractiveObject
 Inherited降下隱藏軟體鍵盤之後立即傳送。InteractiveObject
 Inherited在物件的 tabChildren 旗標值變更時傳送。InteractiveObject
 Inherited在物件的 tabEnabled 旗標變更時傳送。InteractiveObject
 Inherited在物件的 tabIndex 屬性值變更時傳送。InteractiveObject
 Inherited當使用者輸入一或多文字的字元時送出。InteractiveObject
 Inherited當使用者在第一次接觸觸控裝置後傳送 (例如手指觸摸行動電話或平板電腦的觸控螢幕)。InteractiveObject
 Inherited當使用者在觸控裝置上移除接觸點後傳送 (例如在行動電話或平板電腦觸控螢幕上移開手指)。InteractiveObject
 Inherited當使用者觸控裝置時傳送,並且連續不斷地傳送,直到接觸點移除為止。InteractiveObject
 Inherited當使用者在觸控裝置中,將接觸點移出 InteractiveObject 實體後送出 (例如在行動電話或平板電腦的觸控螢幕上,將手指從顯示物件移至另一個顯示物件)。InteractiveObject
 Inherited當使用者在觸控裝置中將接觸點移至 InteractiveObject 實體上方後送出 (例如在行動電話或平板電腦的觸控螢幕上,將手指從顯示物件外面的某一點,往顯示物件上方拖曳)。InteractiveObject
 Inherited當使用者在觸控裝置上,將接觸點從 InteractiveObject 實體移出後送出 (例如,在行動電話或平板電腦的觸控螢幕上,將手指從顯示物件上方拖曳到顯示物件以外)。InteractiveObject
 Inherited當使用者在觸控裝置中將接觸點移至 InteractiveObject 實體上方後送出 (例如在行動電話或平板電腦的觸控螢幕上,將手指從顯示物件外面的某一點,往顯示物件上方拖曳)。InteractiveObject
 Inherited當使用者在觸控裝置的同一個 InteractiveObject 實體上,在原先開始接觸點放開後送出 (例如在行動電話或平板電腦觸控螢幕上的顯示物件上方,以手指按下某個點後又鬆開)。InteractiveObject
屬性詳細資訊

content

屬性
content:DisplayObject  [唯讀]

語言版本: ActionScript 3.0
產品版本: Flash CS5.5
執行階段版本: AIR 1.0, Flash Player 9

包含使用 load()loadBytes() 方法載入的 SWF 檔案或影像檔 (JPG、PNG、或 GIF) 的根顯示物件。



實作
    public function get content():DisplayObject

擲回值
SecurityError — 載入的 SWF 檔案或影像檔屬於您無法存取的安全執行程序。 如果是載入的 SWF 檔,您可以在呼叫 load()loadBytes() 方法時,讓檔案呼叫 Security.allowDomain() 方法,或讓載入中的檔案指定 loaderContext 參數,便可以將 securityDomain 屬性設為 SecurityDomain.currentDomain 並避免這個情況發生。

contentLoaderInfo

屬性 
contentLoaderInfo:ProLoaderInfo  [唯讀]

語言版本: ActionScript 3.0
產品版本: Flash CS5.5
執行階段版本: AIR 1.0, Flash Player 9

傳回與載入中物件相對應的 ProLoaderInfo 物件。ProLoader 物件與載入的內容物件會共用 ProLoaderInfo 物件。ProLoaderInfo 物件會提供與載入檔案相關的載入進度資訊與統計資料。

與載入有關的事件都會由 ProLoaderInfo 物件 (由 ProLoader 物件的 contentLoaderInfo 屬性所參照) 來傳送。contentLoaderInfo 屬性設定為有效的 ProLoaderInfo 物件,即使在內容載入之前也一樣,這樣您就能在載入之前,將事件偵聽程式加入物件中。

若要偵測載入 SWF 時未捕捉到的錯誤,請使用 ProLoader.uncaughtErrorEvents 屬性,不要使用 ProLoader.contentLoaderInfo.uncaughtErrorEvents 屬性。

注意 contentLoaderInfo 屬性會傳回 ProLoaderInfo 物件。ProLoaderInfo 不是 LoaderInfo 的子類別,無法讓您以隱含方式轉換為父類別。因此,請務必將您的類型宣告從 LoaderInfo 更改為 ProLoaderInfo。



實作
    public function get contentLoaderInfo():ProLoaderInfo

uncaughtErrorEvents

屬性 
uncaughtErrorEvents:EventDispatcher  [唯讀]

語言版本: ActionScript 3.0
產品版本: Flash CS5.5
執行階段版本: Flash Player 10.1, AIR 2.0

是一個物件,當這個 ProLoader 物件之 SWF 檔案的程式碼發生未處理的錯誤時,這個物件就會傳送 uncaughtError 事件。在任何 try..catch 區塊外面發生錯誤時,或傳送的 ErrorEvent 物件沒有註冊偵聽程式時,就會發生未捕捉到的錯誤。

當此物件相關的 SWF 載入完成之後,就會建立這個屬性。直到 uncaughtErrorEvents 屬性變成 null 為止。在僅有 ActionScript 的專案中,您可以在執行 SWF 檔案主要類別的建構函數期間或之後存取此屬性。

在不支援的播放程式中存取這個 ProLoader 屬性會產生錯誤。傳回 EventDispatcher 物件,而非 UncaughtErrorEvents 物件,以避免在不支援的播放程式中產生錯誤。



實作
    public function get uncaughtErrorEvents():EventDispatcher

相關 API 元素

建構函式詳細資料

ProLoader

()建構函式
public function ProLoader()

語言版本: ActionScript 3.0
產品版本: Flash CS5.5
執行階段版本: AIR 1.0, Flash Player 9

建立一個 ProLoader 物件,可用來載入檔案 (如 SWF、JPEG、GIF,或是 PNG 檔)。呼叫 load() 方法,將資源做為 ProLoader 實體的子系載入。接著,您可以將 ProLoader 物件加入顯示清單 (例如,您可以使用 DisplayObjectContainer 實體的 addChild() 方法)。資源會在載入「舞台」時顯示。

您也可以在「清單外」使用 ProLoader 實體,也就是說,不要將它加入至顯示清單中的顯示物件容器。在這種模式裡,您可以使用 Loader 實體載入包含額外應用程式模組的 SWF 檔案。

若要偵測 SWF 檔案是否已經完成載入,您可以使用與 ProLoader 物件的 contentLoaderInfo 屬性關聯之 ProLoaderInfo 物件的事件。在這個階段,可以執行 SWF 檔案模組中的程式碼來初始化並起始模組。 在「清單外」模式中,您也可以使用 ProLoader 實體來載入包含組件或媒體資源的 SWF 檔案。同樣,您也可以使用 ProLoaderInfo 物件事件通知來偵測組件是否已經完成載入。在這個階段,應用程式會實體化代表這些元件與資源的 ActionScript 3.0 類別,以使用 SWF 檔案元件庫的組件與媒體資源開始動作。

若要判斷 ProLoader 物件的狀態,請監視下列與 ProLoader 物件之 contentLoaderInfo 屬性關聯的 ProLoaderInfo 物件事件:

  • 開始載入時,會傳送 open 事件。
  • 如果無法載入檔案,或者載入程序當中發生錯誤,便會傳送 ioErrorsecurityError 事件。
  • 在載入檔案的過程中,會持續觸發 progress 事件。
  • 當檔案下載完成,但是尚未取得載入的影片片段的方法和屬性之前,會傳送 complete 事件。如果載入的 SWF 檔案使用 RSL 預先載入,則這個事件會在 RSL 預先載入完成後傳送。現在,實際內容可以在 content 屬性中取得。
  • 一旦取得了載入的 SWF 檔案之屬性與方法,便會傳送 init 事件,方便您開始操作載入的 SWF 檔案。 這個事件會在 complete 處理常式之前傳送。 在串流 SWF 檔案時,init 事件的發生時間會比 complete 事件提早很多。 在大部分的情況下,請使用 init 處理常式。如果載入的 SWF 檔案使用 RSL 預先載入,則這個事件會在 RSL 預先載入完成後傳送。現在,實際內容可以在 content 屬性中取得。

相關 API 元素

方法詳細資訊

close

()方法
public function close():void

語言版本: ActionScript 3.0
產品版本: Flash CS5.5
執行階段版本: AIR 1.0, Flash Player Player - 9

取消 ProLoader 實體目前正在進行的 load() 方法作業。

load

()方法 
public function load(request:URLRequest, context:LoaderContext = null):void

語言版本: ActionScript 3.0
產品版本: Flash CS5.5
執行階段版本: Flash Player 9, AIR 1.0, Flash Player Player - 9

將 SWF、JPEG、漸進式 JPEG、不含動畫的 GIF,或 PNG 檔載入此 ProLoader 物件的子物件中。如果載入內含動畫的 GIF 檔案,則只會顯示第一個影格。 由於 ProLoader 物件只能包含一個子系,當您後續發出 load() 要求時,會終止上一個要求 (如果上一個要求正等候執行的話),然後開始新的載入作業。

注意:在 AIR 1.5 和 Flash Player 10 中,載入的影像大小上限為 8,191 像素寬度或高度,且像素總計不得超過 16,777,215 像素 (因此,如果載入的影像寬度為 8,191 像素,則其高度上限為 2,048 像素)。若為 Flash Player 9 和 AIR 1.1 及其更早版本,高度和寬度的上限都是 2,880 像素。

載入 ProLoader 物件的 SWF 檔案或影像會繼承 ProLoader 物件之上層顯示物件的位置、旋轉與縮放屬性。

請使用 unload() 方法,將使用此方法載入的影片或影像移除,或是取消正在進行中的載入作業。

您可以拒絕 SWF 檔使用這個方法,方式是在包含 SWF 內容的 HTML 網頁中,設定 objectembed 標籤的 allowNetworking 參數。

當您使用這個方法時,請考慮 ProLoader 類別說明中所述的 Flash Player 安全性模型。

在 Flash Player 10 和更新版本中,如果您使用包含上載 (由 POST 主體中 "content-disposition" 檔頭的 "filename" 參數指示) 的多部分 Content-Type (例如 "multipart/form-data"),POST 作業會受限於上載所套用的安全性規則:

  • 必須執行 POST 作業,以回應使用者啟動的動作 (例如按下滑鼠或按下按鍵)。
  • 如果 POST 作業會跨越網域 (POST 目標與傳送 POST 要求的 SWF 檔不在同一部伺服器上),目標伺服器必須提供允許跨網域存取的 URL 原則。

此外,多部分的 Content-Type 語法必須有效 (符合 RFC2046 標準)。如果語法無效,POST 作業會受限於上載所套用的安全性規則。

如需安全性詳細資訊,請參閱「Flash Player 開發人員中心」主題:安全性

參數

request:URLRequest — 要載入的 SWF、JPEG、GIF 或 PNG 檔的絕對或相對 URL。 相對路徑必須相對於主要 SWF 檔案。 絕對 URL 必須包含通訊協定參照,例如 http:// 或 file:///。 檔案名稱不能包含磁碟機的規格。
 
context:LoaderContext (default = null) — LoaderContext 物件,具有定義下列事項的屬性:
  • 是否應該在載入物件時檢查原則檔案存在與否
  • 載入物件的 ApplicationDomain
  • 載入物件的 SecurityDomain
  • 載入影像物件的 ImageDecodingPolicy

如果 context 參數未指定或參考 null 物件,載入的內容仍然會在其本身的安全性網域中。

如需完整清單,請參閱 LoaderContext 類別中的屬性說明。


事件
asyncError:AsyncErrorEvent — 如果已經指定 LoaderContext.requestedContentParent 屬性,而且無法將載入的內容做為子系新增至指定的 DisplayObjectContainer,則會由 contentLoaderInfo 物件傳送。如果載入的內容是 flash.display.AVM1Movie,或者如果 addChild() 呼叫 requestedContentParent 時擲出錯誤,便可能會發生此狀況。
 
complete:Event — 在檔案已經完成載入時,由 contentLoaderInfo 物件傳送。complete 事件一定會在 init 事件之後傳送。
 
httpStatus:HTTPStatusEvent — 在透過 HTTP 發出網路要求,而且 Flash Player 可以偵測 HTTP 狀態碼時,由 contentLoaderInfo 物件傳送。
 
init:Event — 在可存取載入之 SWF 檔的屬性與方法時,由 contentLoaderInfo 物件傳送。init 事件一定會在 complete 事件之前發生。
 
ioError:IOErrorEvent — 當發生輸入或輸出錯誤而導致載入作業失敗時,由 contentLoaderInfo 物件傳送。
 
open:Event — 在載入作業開始時,由 contentLoaderInfo 物件傳送。
 
progress:ProgressEvent — 在載入作業進行期間收到資料時,由 contentLoaderInfo 物件傳送。
 
securityError:SecurityErrorEvent — 如果具有檔案系統的本機安全執行程序中的 SWF 檔嘗試載入具有網路連線的本機安全執行程序中的內容,由 contentLoaderInfo 物件傳送,反之亦然。
 
securityError:SecurityErrorEvent — 如果已經指定 LoaderContext.requestedContentParent 屬性,而且 LoaderContext.requestedContentParent 的安全執行程序無法存取載入的 SWF,則會由 contentLoaderInfo 物件傳送。
 
unload:Event — 移除已載入的物件時,由 contentLoaderInfo 物件傳送。

擲回值
IOError request 物件的 digest 屬性不是 null。只有在載入 SWZ 檔 (Adobe 平台組件) 過程中呼叫 URLLoader.load() 方法時,才需設定 URLRequest 物件的 digest 屬性。
 
SecurityError LoaderContext.securityDomain 的值必須為 nullSecurityDomain.currentDomain。 在此所反映的事實是,您只能將載入的媒體放入其自然的安全執行程序,或是您自己的安全執行程序中 (後者需要原則檔才能進行)。
 
SecurityError — 本機 SWF 檔案只能將 LoaderContext.securityDomain 設為 null。 您不可以將非本機媒體匯入本機安全執行程序,或將其他本機媒體放入其自然安全執行程序以外的安全執行程序中。
 
SecurityError — 您不可以連接到常用的保留連接埠。完整的封鎖連接埠清單,請參閱在「ActionScript 3.0 開發人員指南」中的「限制網路 API」
 
SecurityError — 如果 context 參數的 applicationDomainsecurityDomain 屬性來自不允許的網域。
 
SecurityError — 如果本機 SWF 檔案嘗試使用 context 參數的 securityDomain 屬性。
 
IllegalOperationError — 如果 context 參數的 requestedContentParent 屬性為 ProLoader
 
IllegalOperationError — 如果將 LoaderContext.parameters 參數設為非 null,且部分值不是字串。

相關 API 元素

loadBytes

()方法 
public function loadBytes(bytes:ByteArray, context:LoaderContext = null):void

語言版本: ActionScript 3.0
產品版本: Flash CS5.5
執行階段版本: Flash Player 9, AIR 1.0, Flash Player 9

載入儲存在 ByteArray 物件中的二進位資料。

loadBytes() 方法是非同步的方法。在存取載入物件的屬性前,您必須等候 "init" 事件。

當您使用這個方法時,請考慮 ProLoader 類別說明中所述的 Flash Player 安全性模型。

參數

bytes:ByteArray — ByteArray 物件。 ByteArray 內容可以是 ProLoader 類別所支援的任何檔案格式:SWF、GIF、JPEG 或 PNG。
 
context:LoaderContext (default = null) — LoaderContext 物件。 只會套用 LoaderContext 物件的 applicationDomain 屬性,而不會套用 LoaderContext 物件的 checkPolicyFilesecurityDomain 屬性。

如果 context 參數未指定或參考 null 物件,內容會載入在目前的安全性網域中 (這個程序在 Flash Player 安全性文件中稱為「匯入載入」)。具體來說,如果正在載入的 SWF 檔藉由將遠端 SWF 檔加入至其本身的程式碼來信任遠端 SWF 檔,正在載入的 SWF 檔就可以將它直接載入至其本身的安全性網域。

如需安全性詳細資訊,請參閱「Flash Player 開發人員中心」主題:安全性


事件
asyncError:AsyncErrorEvent — 如果已經指定 LoaderContext.requestedContentParent 屬性,而且無法將載入的內容做為子系新增至指定的 DisplayObjectContainer,則會由 contentLoaderInfo 物件傳送。如果載入的內容是 flash.display.AVM1Movie,或者如果 addChild() 呼叫 requestedContentParent 時擲出錯誤,便可能會發生此狀況。
 
complete:Event — 當作業完成時,由 contentLoaderInfo 物件傳送。complete 事件一定會在 init 事件之後傳送。
 
init:Event — 在可存取載入之資料的屬性與方法時,由 contentLoaderInfo 物件傳送。init 事件一定會在 complete 事件之前發生。
 
ioError:IOErrorEvent — 當執行階段無法剖析位元組陣列中的資料時,由 contentLoaderInfo 物件傳送。
 
open:Event — 在作業開始時,由 contentLoaderInfo 物件傳送。
 
progress:ProgressEvent — 當資料在記憶體中傳輸時,由 contentLoaderInfo 物件傳送。
 
securityError:SecurityErrorEvent — 如果已經指定 LoaderContext.requestedContentParent 屬性,而且 LoaderContext.requestedContentParent 的安全執行程序無法存取載入的 SWF,則會由 contentLoaderInfo 物件傳送。
 
unload:Event — 移除已載入的物件時,由 contentLoaderInfo 物件傳送。

擲回值
ArgumentError — 如果 ByteArray 物件的 length 屬性沒有大於零 (0)。
 
IllegalOperationError — 如果 context 參數的 checkPolicyFilesecurityDomain 屬性為非 null。
 
IllegalOperationError — 如果 context 參數的 requestedContentParent 屬性為 ProLoader
 
IllegalOperationError — 如果將 LoaderContext.parameters 參數設為非 null,且部分值不是字串。
 
SecurityError — 如果所提供的 context 屬性的 applicationDomain 屬性來自不允許的網域。
 
SecurityError — 您不可以連接到常用的保留連接埠。完整的封鎖連接埠清單,請參閱在「ActionScript 3.0 開發人員指南」中的「限制網路 API」

相關 API 元素

loadFilePromise

()方法 
public function loadFilePromise(promise:Object, context:LoaderContext = null):void

語言版本: ActionScript 3.0
產品版本: Flash CS5.5
執行階段版本: AIR 2.5, AIR 2.0, Flash Player 9

透過 promise 參數載入 IFilePromise 實體。promise 參數的類型使用 Object 父類別而非 IFilePromise,以避免其他播放程式發生錯誤。

loadFilePromise 方法接受 IFilePromise 物件並載入二進位資料。若資料為視訊之類的漸進式串流,請在存取載入物件的屬性之前,等待 "init" 或進度事件。否則,請等待完整的事件,以確認完整載入資料。

當您使用這個方法時,請考慮 ProLoader 類別說明中所述的 Flash Player 安全性模型。

參數

promise:Object — IFilePromise 物件。物件的資料來源可以是 ProLoader 類別所支援的任何檔案格式:SWF、GIF、JPEG 或 PNG。
 
context:LoaderContext (default = null) — LoaderContext 物件。 只會套用 LoaderContext 物件的 applicationDomain 屬性,而不會套用 LoaderContext 物件的 checkPolicyFilesecurityDomain 屬性。

如果 context 參數未指定或參考 null 物件,內容會載入在目前的安全性網域中 (這個程序在 Flash Player 安全性文件中稱為「匯入載入」)。具體來說,如果正在載入的 SWF 檔藉由將遠端 SWF 檔加入至其本身的程式碼來信任遠端 SWF 檔,正在載入的 SWF 檔就可以將它直接載入至其本身的安全性網域。

如需安全性詳細資訊,請參閱「Flash Player 開發人員中心」主題:安全性


事件
asyncError:AsyncErrorEvent — 如果已經指定 LoaderContext.requestedContentParent 屬性,而且無法將載入的內容做為子系新增至指定的 DisplayObjectContainer,則會由 contentLoaderInfo 物件傳送。如果載入的內容是 flash.display.AVM1Movie,或者如果 addChild() 呼叫 requestedContentParent 時擲出錯誤,便可能會發生此狀況。
 
complete:Event — 當作業完成時,由 contentLoaderInfo 物件傳送。complete 事件一定會在 init 事件之後傳送。
 
init:Event — 在可存取載入之資料的屬性與方法時,由 contentLoaderInfo 物件傳送。init 事件一定會在 complete 事件之前發生。
 
ioError:IOErrorEvent — 當執行階段無法剖析資料來源中的資料或無法讀取資料來源串流時,會由 contentLoaderInfo 物件傳送。
 
open:Event — 在作業開始時,由 contentLoaderInfo 物件傳送。
 
progress:ProgressEvent — 當資料在記憶體中傳輸時,由 contentLoaderInfo 物件傳送。
 
securityError:SecurityErrorEvent — 如果已經指定 LoaderContext.requestedContentParent 屬性,而且 LoaderContext.requestedContentParent 的安全執行程序無法存取載入的 SWF,則會由 contentLoaderInfo 物件傳送。
 
unload:Event — 移除已載入的物件時,由 contentLoaderInfo 物件傳送。

警告 在 AIR 應用程式之外存取此 API 會產生錯誤。


擲回值
IllegalOperationError — 如果 context 參數的 requestedContentParent 屬性為 ProLoader 物件。
 
IllegalOperationError — 如果將 LoaderContext.parameters 參數設為非 null,且部分值不是字串。
 
ArgumentError — 如果以參數傳遞的 IFilePromise 物件為 Null

相關 API 元素

unload

()方法 
public function unload():void

語言版本: ActionScript 3.0
產品版本: Flash CS5.5
執行階段版本: AIR 1.0, Flash Player 9

移除使用 load() 方法載入 ProLoader 物件的子系。與 ProLoaderInfo 物件關聯的 property 會重設為 null。由於其他物件不見得會參照此子系,因此不一定會移除此子系;然而,此子系將不再屬於 ProLoader 物件的子系。

在您取消載入 SWF 子檔案時,最好的方法就是明確地關閉任何位於 SWF 子檔案物件 (例如 LocalConnection、NetConnection、NetStream,與 Sound 物件) 中的串流。 否則,SWF 子檔案中的聲音可能會繼續播放,就算取消載入 SWF 子檔案也是一樣。 若要關閉 SWF 子檔案中的串流,請將事件偵聽程式加入至 unload 事件所偵聽的子系。 當父輩呼叫 ProLoader.unload() 時,unload 事件便會傳送到子系。下列程式碼將向您說明所應採取的方式:

function closeAllStreams(evt:Event) { 
    myNetStream.close();
    mySound.close();
    myNetConnection.close();
    myLocalConnection.close();
}

myMovieClip.loaderInfo.addEventListener(Event.UNLOAD, closeAllStreams);

相關 API 元素





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

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