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

HTMLLoader  - AS3

套件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 範例
法律聲明
套件flash.html
類別public class HTMLLoader
繼承HTMLLoader Inheritance Sprite Inheritance DisplayObjectContainer Inheritance InteractiveObject Inheritance DisplayObject Inheritance EventDispatcher Inheritance Object
子類別 FlexHTMLLoader

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0

HTMLLoader 類別會定義 HTML 內容容器的顯示物件類型。

AIR 描述檔支援:所有桌上型電腦作業系統都支援此項功能,但行動裝置或 AIR for TV 裝置不支援。您可以使用 HTMLLoader.isSupported 屬性測試執行階段的支援狀況。如需有關跨多個描述檔之 API 支援的詳細資訊,請參閱 AIR 描述檔支援

在桌上型電腦上 (在桌面與擴充桌面描述檔中),HTMLLoader 類別使用內部 AIR WebKit 引擎。可用的功能和顯示外觀與 StageWebView 類別相同,加上 ActionScript 與 JavaScript 之間密切整合與指令碼橋接。由於 StageWebView 類別使用 Flash Player 外掛程式所提供的系統網頁控制項,強烈建議不要同時使用 StageWebView 和 HTMLLoader 實體,因為它具有未定義的行為且可能會終止應用程式。

HTMLLoader 的預設尺寸為 0 x 0 像素。設定 widthheight 屬性,以使 HTMLLoader 物件顯示。

HTMLLoader 物件的最大高度為 4,096 像素,而最大寬度為 4,096 像素。如果您將 HTMLLoader 物件的 widthheight 設定為超過 4,095 的數字,就會導致 HTMLLoader 物件擲出 ArgumentError 例外。(請注意,在 AIR 2 之前,HTMLLoader 物件的大小上限為 2,880 像素)。

注意:在透明視窗中顯示時,在 HTML 頁面內嵌的 SWF 內容必須使用 transparentopaque wmode 來內嵌。wmode 的預設值是 window,因此如果您未指定值,則無法顯示 SWF 內容。在 Windows 與 Linux 上,SWF 內容會在 wmode 設為 windowopaque 時,永遠顯示在其他內容頂端。無論使用哪個 wmode 設定,PDF 內容都無法顯示在透明視窗中。

檢視範例



公用屬性
 屬性定義自
 InheritedaccessibilityImplementation : AccessibilityImplementation
對此 InteractiveObject 實體目前的輔助功能實作 (AccessibilityImplementation)。
InteractiveObject
 InheritedaccessibilityProperties : AccessibilityProperties
此顯示物件的目前輔助功能選項。
DisplayObject
 Inheritedalpha : Number
指出所指定物件的 Alpha 透明度值。
DisplayObject
      authenticate : Boolean
指定是 (true) 否 (false) 應針對這個物件所發出的 HTTP 要求處理驗證要求。
HTMLLoader
 InheritedblendMode : String
來自 BlendMode 類別的值,會指定要使用何種混合模式。
DisplayObject
 InheritedblendShader : Shader
[唯寫] 設定用來混合前景和背景的著色器。
DisplayObject
 InheritedbuttonMode : Boolean
可指定此 sprite 的按鈕模式。
Sprite
 InheritedcacheAsBitmap : Boolean
如果設定為 true,Flash 執行階段會快取顯示物件的內部點陣圖表示法。
DisplayObject
 Inherited    cacheAsBitmapMatrix : Matrix
如果為非 null,當 cacheAsBitmap 設定為 true 時,這個 Matrix 物件會定義顯示物件的顯示方法。
DisplayObject
      cacheResponse : Boolean
針對這個物件所發出的 HTTP 要求,指定是否應快取成功回應資料。
HTMLLoader
 Inheritedconstructor : Object
類別物件的參照或是特定物件實體的建構函數。
Object
      contentHeight : Number
[唯讀] HTML 內容的高度,以像素為單位。
HTMLLoader
      contentWidth : Number
[唯讀] HTML 內容的寬度,以像素為單位。
HTMLLoader
 InheritedcontextMenu : NativeMenu
指定與此物件有關聯的快顯選單。
InteractiveObject
 InheriteddoubleClickEnabled : Boolean
會指定物件是否會收到 doubleClick 事件。
InteractiveObject
 InheriteddropTarget : DisplayObject
[唯讀] 指定要將 sprite 拖曳至或丟棄至哪個顯示物件上。
Sprite
 Inheritedfilters : Array
索引的陣列,其中包含目前和顯示物件相關的每個濾鏡物件。
DisplayObject
 InheritedfocusRect : Object
會指定這個物件是否會顯示焦點矩形。
InteractiveObject
 Inheritedgraphics : Graphics
[唯讀] 指定屬於此 sprite 物件的 Graphics 物件,其中可能會產生向量繪圖命令。
Sprite
      hasFocusableContent : Boolean
[唯讀] 指出 HTMLLoader 物件中的任何內容是否可取得焦點。
HTMLLoader
      height : Number
[覆寫] 指定所呈現 HTML 畫布矩形的高度。
HTMLLoader
      historyLength : uint
[唯讀] 操作記錄清單的整體長度,包括後退和前進項目。
HTMLLoader
      historyPosition : uint
操作記錄清單中目前的位置。
HTMLLoader
 InheritedhitArea : Sprite
指定用來當作 sprite 作用區域的另一個 sprite。
Sprite
      htmlHost : flash.html:HTMLHost
HTMLHost 物件,用來處理特定使用者介面元素 (如 HTMLLoader 物件的 window.document.title 屬性) 的變更。
HTMLLoader
      idleTimeout : Number
指定由這個物件發出之 HTTP 要求的閒置逾時值 (以毫秒為單位)。
HTMLLoader
      isSupported : Boolean
[靜態] [唯讀] 指出用戶端系統是否支援 HTMLLoader 類別。
HTMLLoader
      loaded : Boolean
[唯讀] 指出對應於上一個 load() 或 loadString() 方法呼叫的 JavaScript load 事件是否已傳送至 HTMLLoader 物件中的 HTML DOM。
HTMLLoader
 InheritedloaderInfo : LoaderInfo
[唯讀] 會傳回 LoaderInfo 物件,其中包含關於載入此顯示物件所屬之檔案的資訊。
DisplayObject
      location : String
[唯讀] HTMLLoader 物件中所載入內容的 URL。
HTMLLoader
      manageCookies : Boolean
指定 HTTP 通訊協定堆疊是否應管理這個物件的 Cookie。
HTMLLoader
 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
      navigateInSystemBrowser : Boolean
指定 HTML 內容根框架瀏覽 (例如,當使用者按一下連結時、在設定 window.location 屬性時,或在呼叫 window.open() 時) 會造成 HTMLLoader 物件中的瀏覽 (false) 或預設系統網頁瀏覽器中的瀏覽 (true)。
HTMLLoader
 InheritedneedsSoftKeyboard : Boolean
指定虛擬鍵盤 (螢幕上的軟體鍵盤) 是否應在此 InteractiveObject 實體接收到焦點時顯示。
InteractiveObject
 InheritednumChildren : int
[唯讀] 傳回此物件的子系數量。
DisplayObjectContainer
 InheritedopaqueBackground : Object
會指定顯示物件是否不透明,並具有特定背景顏色。
DisplayObject
      paintsDefaultBackground : Boolean
指定 HTMLLoader 文件的背景是 (true) 否 (false) 為不透明白色。
HTMLLoader
 Inheritedparent : DisplayObjectContainer
[唯讀] 指出包含此顯示物件的 DisplayObjectContainer 物件。
DisplayObject
      pdfCapability : int
[靜態] [唯讀] 使用者系統上的 PDF 支援類型,定義為整數碼值。
HTMLLoader
      placeLoadStringContentInApplicationSandbox : Boolean
指定透過 loadString() 方法所載入的內容是放入應用程式安全執行程序中 (true),或是放入非應用程式安全執行程序中 (false)。
HTMLLoader
 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
      runtimeApplicationDomain : ApplicationDomain
HTML 網頁中 JavaScript window.runtime 物件所使用的應用程式網域。
HTMLLoader
 Inheritedscale9Grid : Rectangle
目前產生效用的縮放格線。
DisplayObject
 InheritedscaleX : Number
指出從註冊點套用的物件水平縮放 (百分比)。
DisplayObject
 InheritedscaleY : Number
指出從物件註冊點套用的物件垂直縮放 (百分比)。
DisplayObject
 InheritedscaleZ : Number
指出從物件註冊點套用的物件深度縮放 (百分比)。
DisplayObject
      scrollH : Number
HTMLLoader 物件中 HTML 內容的水平捲動位置。
HTMLLoader
 InheritedscrollRect : Rectangle
顯示物件的捲動矩形範圍。
DisplayObject
      scrollV : Number
HTMLLoader 物件中 HTML 內容的垂直捲動位置。
HTMLLoader
 Inherited    softKeyboard : String
控制軟體鍵盤的外觀。
InteractiveObject
 InheritedsoftKeyboardInputAreaOfInterest : Rectangle
定義顯示軟體鍵盤時,應保留於螢幕上的區域 (iOS 未提供)。
InteractiveObject
 InheritedsoundTransform : flash.media:SoundTransform
控制此 Sprite 的聲音。
Sprite
 Inheritedstage : Stage
[唯讀] 顯示物件的「舞台」。
DisplayObject
      swfCapability : int
[靜態] [唯讀] 使用者系統上的 SWF 支援類型,定義為整數碼值。
HTMLLoader
 InheritedtabChildren : Boolean
判斷物件的子系是否支援啟用定位鍵。
DisplayObjectContainer
 InheritedtabEnabled : Boolean
會指定這個物件是否在停駐點順序中。
InteractiveObject
 InheritedtabIndex : int
會指定 SWF 檔中的物件停駐點順序。
InteractiveObject
      textEncodingFallback : String
HTMLLoader 內容使用的字元編碼 (如果 HTML 網頁未指定字元編碼)。
HTMLLoader
      textEncodingOverride : String
HTMLLoader 內容使用的字元編碼,覆寫 HTML 網頁中的任何設定。
HTMLLoader
 InheritedtextSnapshot : flash.text:TextSnapshot
[唯讀] 傳回此 DisplayObjectContainer 實體的 TextSnapshot 物件。
DisplayObjectContainer
 Inheritedtransform : flash.geom:Transform
這是一個物件,具有和顯示物件的矩陣、顏色轉換和像素邊界有關的屬性。
DisplayObject
      useCache : Boolean
在這個物件所發出的 HTTP 要求取得資料之前,指定是否應查閱本機快取。
HTMLLoader
 InheriteduseHandCursor : Boolean
指示當指標滑入 Sprite,且其 buttonMode 屬性設為 true 時,是否要出現指示手掌 (手掌游標) 的 Boolean 值。
Sprite
      userAgent : String
來自這個 HTMLLoader 物件的任何即將發出內容要求中所使用的使用者代理字串。
HTMLLoader
 Inheritedvisible : Boolean
不管是否看得見顯示物件。
DisplayObject
      width : Number
[覆寫] 指定所呈現 HTML 畫布矩形的寬度。
HTMLLoader
      window : Object
[唯讀] HTML 控制項中所載入內容的全域 JavaScript 物件。
HTMLLoader
 Inheritedx : Number
指出 DisplayObject 實體相對於父輩 DisplayObjectContainer 之區域座標的 x 座標。
DisplayObject
 Inheritedy : Number
指出 DisplayObject 實體相對於父輩 DisplayObjectContainer 之區域座標的 y 座標。
DisplayObject
 Inheritedz : Number
表示 DisplayObject 實體相對於 3D 父輩容器的 z 座標位置 (沿著 z 軸)。
DisplayObject
公用方法
 方法定義自
  
    HTMLLoader()
建立 HTMLLoader 物件。
HTMLLoader
 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
  
    cancelLoad():void
取消進行中的任何載入作業。
HTMLLoader
 Inherited
判斷指定的顯示物件是否為 DisplayObjectContainer 實體的子系,或為實體本身。
DisplayObjectContainer
  
    createRootWindow(visible:Boolean = true, windowInitOptions:NativeWindowInitOptions = null, scrollBarsVisible:Boolean = true, bounds:Rectangle = null):flash.html:HTMLLoader
[靜態] 建立一個包含 HTMLLoader 物件的新 NativeWindow 物件。
HTMLLoader
 Inherited
會將事件傳送到事件流程。
EventDispatcher
 Inherited
getBounds(targetCoordinateSpace:DisplayObject):Rectangle
傳回可定義顯示物件區域 (相對於 targetCoordinateSpace 物件的座標系統) 的矩形。
DisplayObject
 Inherited
傳回存在於指定索引位置的子顯示物件實體。
DisplayObjectContainer
 Inherited
傳回具有指定名稱的子顯示物件。
DisplayObjectContainer
 Inherited
傳回 child DisplayObject 實體的索引位置。
DisplayObjectContainer
  
在指定位置傳回操作記錄項目。
HTMLLoader
 Inherited
傳回位於指定點底下,且屬於此 DisplayObjectContainer 實體之子系 (或孫系,以下類推) 的物件陣列。
DisplayObjectContainer
 Inherited
getRect(targetCoordinateSpace:DisplayObject):Rectangle
根據 targetCoordinateSpace 參數所定義的座標系統,並排除形狀上的任何筆畫,傳回可定義顯示物件邊界的矩形。
DisplayObject
 Inherited
將 point 物件從「舞台」(全域) 座標轉換成顯示物件的 (區域) 座標。
DisplayObject
 Inherited
將二維點從「舞台」(全域) 座標轉換為三維顯示物件的 (區域) 座標。
DisplayObject
 Inherited
會檢查 EventDispatcher 物件是否有對特定的事件類型註冊偵聽程式。
EventDispatcher
 Inherited
指出物件是否有已定義的指定屬性。
Object
  
    historyBack():void
如果可能,在瀏覽器操作記錄中向後瀏覽。
HTMLLoader
  
如果可能,在瀏覽器操作記錄中向前瀏覽。
HTMLLoader
  
    historyGo(steps:int):void
在瀏覽器操作記錄中瀏覽指定的步驟數。
HTMLLoader
 Inherited
評估顯示物件的範圍框,看它是否與 obj 顯示物件的範圍框重疊或相交。
DisplayObject
 Inherited
hitTestPoint(x:Number, y:Number, shapeFlag:Boolean = false):Boolean
評估顯示物件,看它是否與 x 和 y 參數所指定的點重疊或相交。
DisplayObject
 Inherited
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。
Object
  
    load(urlRequestToLoad:URLRequest):void
使用 urlRequestToLoad 參數所指定網站中的資料來載入 HTMLLoader 物件。
HTMLLoader
  
    loadString(htmlContent:String):void
使用 HTML 字串中包含的 HTML 內容來載入 HTMLLoader 物件。
HTMLLoader
 Inherited
將三維顯示物件的 (區域) 座標的三維點轉換為「舞台」(全域) 座標中的二維點。
DisplayObject
 Inherited
將 point 物件從顯示物件的 (區域) 座標轉換成「舞台」(全域) 座標。
DisplayObject
 Inherited
指出指定的屬性是否存在,以及是否可列舉。
Object
  
    reload():void
從目前位置重新載入頁面。
HTMLLoader
 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
 Inherited
會傳回指定之物件的基本值。
Object
 Inherited
檢查此 EventDispatcher 物件是否已註冊事件偵聽程式,或者此物件的任何祖系已為特定事件類型註冊事件偵聽程式。
EventDispatcher
事件
 事件 摘要 定義自
 Inherited[廣播事件] 當 Flash Player 或 AIR 應用程式取得作業系統焦點並成為作用中時傳送。EventDispatcher
 Inherited當顯示物件加入顯示清單中時傳送。DisplayObject
 Inherited會在顯示物件加入舞台上的顯示清單時,以直接或是透過加入包含該顯示物件之子樹狀結構的方式傳送。DisplayObject
 Inherited當使用者從文字快顯選單中選取「清除」(或「刪除」) 時傳送。InteractiveObject
 Inherited會當使用者在相同的 InteractiveObject 上方按下並放開使用者的指向裝置主按鈕時傳送。InteractiveObject
  
    complete
指出 loadString 或 load 方法所要求的最後一個載入作業已完成。HTMLLoader
 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
  指出 HTMLLoader 物件的 contentWidth 或 contentHeight 屬性或兩者已變更。HTMLLoader
  指出為了回應載入作業,已建立 HTML DOM。HTMLLoader
  
    htmlRender
指出 HTMLLoader 物件中的內容顯示都是最新的。HTMLLoader
 Inherited這個事件會送出至任何支援 IME 內嵌輸入的用戶端應用程式。InteractiveObject
 Inherited會當使用者按下按鍵時傳送。InteractiveObject
 Inherited當使用者嘗試使用鍵盤瀏覽變更焦點時傳送。InteractiveObject
 Inherited會當使用者放開按鍵時傳送。InteractiveObject
  指出 HTMLLoader 物件的 location 屬性已變更。HTMLLoader
  指出 HTMLLoader 物件的 location 屬性已變更。HTMLLoader
  發出訊號,表示 HTMLLoader 物件的 location 屬性即將變更。HTMLLoader
 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
  
    scroll
指出 HTMLLoader 物件已變更 scrollH 或 scrollV 屬性。HTMLLoader
 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
  指出 HTMLLoader 物件中發生未捕捉的 JavaScript 例外。HTMLLoader
屬性詳細資訊
    

authenticate

屬性
authenticate:Boolean

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0

指定是 (true) 否 (false) 應針對這個物件所發出的 HTTP 要求處理驗證要求。如果為 false,則驗證挑戰會傳回 HTTP 錯誤。

預設值為 initialized from URLRequestDefaults.authenticate。



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

相關 API 元素

    

cacheResponse

屬性 
cacheResponse:Boolean

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0

針對這個物件所發出的 HTTP 要求,指定是否應快取成功回應資料。設定為 true 時,HTMLLoader 物件會使用作業系統的 HTTP 快取。

預設值為 initialized from URLRequestDefaults.cacheResponse。



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

相關 API 元素

    

contentHeight

屬性 
contentHeight:Number  [唯讀]

執行階段版本: AIR 1.0

HTML 內容的高度,以像素為單位。這個屬性會隨著 HTMLLoader 物件尺寸變更而變更。例如,HTML 網頁通常會使用 HTMLLoader 物件的整個高度,而且如果您變更 HTMLLoader 物件的高度,contentHeight 屬性可能會變更。



實作
    public function get contentHeight():Number
    

contentWidth

屬性 
contentWidth:Number  [唯讀]

執行階段版本: AIR 1.0

HTML 內容的寬度,以像素為單位。這個屬性會隨著 HTMLLoader 物件尺寸變更而變更。例如,HTML 網頁通常會使用 HTMLLoader 物件的整個寬度,而且如果您變更 HTMLLoader 物件的寬度,contentWidth 屬性可能會變更。



實作
    public function get contentWidth():Number
    

hasFocusableContent

屬性 
hasFocusableContent:Boolean  [唯讀]

執行階段版本: AIR 1.0

指出 HTMLLoader 物件中的任何內容是否可取得焦點。



實作
    public function get hasFocusableContent():Boolean
    

height

屬性 
height:Number[覆寫]

執行階段版本: AIR 1.0

指定所呈現 HTML 畫布矩形的高度。此屬性值是 HTMLLoader 顯示物件的高度,以像素為單位。height 最大值為 4095 像素。變更這個屬性會使 HTMLLoader 物件重新顯示 HTML 文件。為了回應這個屬性變更,可能會傳送 htmlBoundsChanged 事件。

當您設定 HTMLLoader 物件的 widthheight 屬性時,物件邊界會變更但內容不會縮放 (其他類型的顯示物件也是如此)。



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

historyLength

屬性 
historyLength:uint  [唯讀]

執行階段版本: AIR 1.0

操作記錄清單的整體長度,包括後退和前進項目。這個屬性與 HTML 網頁的 window.history.length JavaScript 屬性具有相同值。



實作
    public function get historyLength():uint

相關 API 元素

    

historyPosition

屬性 
historyPosition:uint

執行階段版本: AIR 1.0

操作記錄清單中目前的位置。操作記錄清單對應於 HTML 網頁的 window.history 物件。小於目前位置的項目是「後退」清單,大於項目是「前進」清單。嘗試超過結尾設定位置,會在結尾設定位置。



實作
    public function get historyPosition():uint
    public function set historyPosition(value:uint):void

相關 API 元素

    

htmlHost

屬性 
htmlHost:flash.html:HTMLHost

執行階段版本: AIR 1.0

HTMLHost 物件,用來處理特定使用者介面元素 (如 HTMLLoader 物件的 window.document.title 屬性) 的變更。若要覆寫 HTMLLoader 物件的預設行為,請建立 HTMLHost 類別的子類別並覆寫它的成員函數,以處理 HTML 內容中的各種使用者介面變更。



實作
    public function get htmlHost():flash.html:HTMLHost
    public function set htmlHost(value:flash.html:HTMLHost):void

相關 API 元素

    

idleTimeout

屬性 
idleTimeout:Number

語言版本: ActionScript 3.0
執行階段版本: AIR 2

指定由這個物件發出之 HTTP 要求的閒置逾時值 (以毫秒為單位)。

閒置逾時是指當建立連線後,在放棄要求之前,用戶端等候伺服器回應的時間 (毫秒)。

預設值為 initialized from URLRequestDefaults.idleTimeout。



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

相關 API 元素

    

isSupported

屬性 
isSupported:Boolean  [唯讀]

執行階段版本: AIR 2

指出用戶端系統是否支援 HTMLLoader 類別。



實作
    public static function get isSupported():Boolean
    

loaded

屬性 
loaded:Boolean  [唯讀]

執行階段版本: AIR 1.0

指出對應於上一個 load()loadString() 方法呼叫的 JavaScript load 事件是否已傳送至 HTMLLoader 物件中的 HTML DOM。傳送 complete 事件之前,這個屬性為 true。這個屬性可能永遠不會變成 true。在絕不會傳送 complete 事件的相同案例中,會發生這種情況。



實作
    public function get loaded():Boolean
    

location

屬性 
location:String  [唯讀]

執行階段版本: AIR 1.0

HTMLLoader 物件中所載入內容的 URL。



實作
    public function get location():String
    

manageCookies

屬性 
manageCookies:Boolean

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0

指定 HTTP 通訊協定堆疊是否應管理這個物件的 Cookie。如果為 true,則 Cookie 會加入要求而且會記住回應 Cookie。如果為 false,則 Cookie 會加入要求而且會記住回應 Cookie。

預設值為 initialized from URLRequestDefaults.manageCookies。



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

相關 API 元素

    

navigateInSystemBrowser

屬性 
navigateInSystemBrowser:Boolean

執行階段版本: AIR 1.0

指定 HTML 內容根框架瀏覽 (例如,當使用者按一下連結時、在設定 window.location 屬性時,或在呼叫 window.open() 時) 會造成 HTMLLoader 物件中的瀏覽 (false) 或預設系統網頁瀏覽器中的瀏覽 (true)。如果您想要所有瀏覽都在系統網頁瀏覽器中發生 (而不是在 HTMLLoader 物件中),請將這個屬性設定為 true

預設值為 false。



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

paintsDefaultBackground

屬性 
paintsDefaultBackground:Boolean

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0

指定 HTMLLoader 文件的背景是 (true) 否 (false) 為不透明白色。如果這個屬性設定為 false,HTMLLoader 物件會使用它的顯示物件容器做為 HTML 背景,而且也會使用顯示物件容器的不透明度 (alpha 值) 做為 HTML 背景。不過,如果 HTML 文件的 body 元素或其他元素有不透明背景顏色 (例如,由 style="background-color:gray" 指定),則所顯示 HTML 的該部分會使用指定的不透明背景顏色。



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

pdfCapability

屬性 
pdfCapability:int  [唯讀]

執行階段版本: AIR 1.0

使用者系統上的 PDF 支援類型,定義為整數碼值。只有在這個屬性評估為 PDFCapability.STATUS_OK 時,HTMLLoader 物件才能顯示 PDF 內容。PDFCapability 類別為 pdfCapability 屬性的可能值定義了常數,如下:

PDFCapability 常數意義
STATUS_OK偵測到適用版本的 Acrobat 或 Adobe Reader (8.1 或更新版本),而且 PDF 內容可以載入 HTMLLoader 物件。

注意:在 Windows 上,如果 Acrobat 或 Adobe Reader 7.x 版或更新版本目前正在使用者系統上執行,即使同時安裝可支援載入 HTMLLoader 物件中所載入 PDF 的更新版本,也會使用該舊版。在這種情況下,如果 pdfCapability 屬性值是 PDFCapability.STATUS_OK,則當 AIR 應用程式嘗試載入 PDF 內容時,舊版的 Acrobat 或 Adobe Reader 會顯示警告 (而 AIR 執行階段不會顯示任何錯誤訊息)。如果這是使用者可能發生的情況,請考慮指示他們在執行您的應用程式時關閉 Acrobat 或 Adobe Reader。如果 PDF 內容未在可接受的時間範圍內載入,可以考慮顯示這些指示。

ERROR_INSTALLED_READER_NOT_FOUND未偵測到任何 Acrobat 或 Adobe Reader 版本。HTMLLoader 物件無法顯示 PDF 內容。
ERROR_INSTALLED_READER_TOO_OLD偵測到 Acrobat 或 Adobe Reader,但版本太舊。HTMLLoader 物件無法顯示 PDF 內容。
ERROR_PREFERED_READER_TOO_OLD雖然偵測到適用版本的 Acrobat 或 Adobe Reader (8.1 或更新版本),但設定為處理 PDF 內容的版本比 8.1 還舊。HTMLLoader 物件無法顯示 PDF 內容。



實作
    public static function get pdfCapability():int

相關 API 元素

    

placeLoadStringContentInApplicationSandbox

屬性 
placeLoadStringContentInApplicationSandbox:Boolean

語言版本: ActionScript 3.0
執行階段版本: AIR 1.5

指定透過 loadString() 方法所載入的內容是放入應用程式安全執行程序中 (true),或是放入非應用程式安全執行程序中 (false)。

當這個屬性設定為 false 時,透過 loadString() 方法所載入的內容就會放入具有下列特性的非應用程式安全執行程序中:

  • 它具有從網路 (而非檔案系統) 載入內容的存取權。
  • 它無法使用 XMLHttpRequest 來載入資料。
  • window.location 屬性設定為 "about:blank"
  • 此內容無法存取 window.runtime 屬性 (如同任何非應用程式安全執行程序中的內容)。

當這個屬性設定為 true 時,透過 loadString() 方法所載入的內容就會放入具備 window.runtime 屬性和所有 AIR API 之存取權的應用程式安全執行程序中。您應該確定 loadString() 方法呼叫中使用之字串的資料來源受到信任。當這個屬性設定為 true 時,HTML 字串中的程式碼陳述式就會以完整應用程式權限執行。只有當您確定字串不可能包含有害的程式碼時,才應該將這個屬性設定為 true

在使用 AIR 1.0 或 AIR 1.1 SDK 所編譯的應用程式中,透過 loadString() 方法所載入的內容會放入應用程式安全執行程序中。

預設值為 false。



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

相關 API 元素

    

runtimeApplicationDomain

屬性 
runtimeApplicationDomain:ApplicationDomain

執行階段版本: AIR 1.0

HTML 頁面中 JavaScript window.runtime 物件所使用的應用程式網域。

如果為 null,或是如果 HTML 內容不是來自包含 HTMLLoader 物件之 SWF 內容的安全性網域,頁面就會將預設應用程式網域做為頁面網域使用。



實作
    public function get runtimeApplicationDomain():ApplicationDomain
    public function set runtimeApplicationDomain(value:ApplicationDomain):void

擲回值
SecurityError — 如果 ApplicationDomain 物件不是來自呼叫者的安全性網域。

相關 API 元素

    

scrollH

屬性 
scrollH:Number

執行階段版本: AIR 1.0

HTMLLoader 物件中 HTML 內容的水平捲動位置。



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

scrollV

屬性 
scrollV:Number

執行階段版本: AIR 1.0

HTMLLoader 物件中 HTML 內容的垂直捲動位置。



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

swfCapability

屬性 
swfCapability:int  [唯讀]

執行階段版本: AIR 2

使用者系統上的 SWF 支援類型,定義為整數碼值。只有在這個屬性評估為 HTMLSWFCapability.STATUS_OK 時,HTMLLoader 物件才能顯示 SWF 內容。HTMLSWFCapability 類別為 swfCapability 屬性的可能值定義了常數,如下:

HTMLSWFCapability 常數意義
STATUS_OK已偵測到合適的 Adobe Flash Player 版本,而且 SWF 內容可以載入 HTMLLoader 物件。
ERROR_INSTALLED_PLAYER_NOT_FOUND未偵測到任何版本的 Adobe Flash Player。HTMLLoader 物件無法顯示 SWF 內容。
ERROR_INSTALLED_PLAYER_TOO_OLD偵測到 Adobe Flash Player,但版本太舊。HTMLLoader 物件無法顯示 SWF 內容。



實作
    public static function get swfCapability():int

相關 API 元素

    

textEncodingFallback

屬性 
textEncodingFallback:String

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0

HTMLLoader 內容使用的字元編碼 (如果 HTML 網頁未指定字元編碼)。HTML 網頁會在 meta 標籤中指定字元編碼,如下所示:

<meta http-equiv="content-type" content="text/html" charset="ISO-8859-1">

值已定義在 IANA 的「有效字元集」清單中。

如果 HTML 網頁未指定編碼 (藉由使用 textEncodingFallback 屬性或 textEncodingOverride 屬性),則 HTML 內容會使用 ISO-8859-1 編碼。



實作
    public function get textEncodingFallback():String
    public function set textEncodingFallback(value:String):void

相關 API 元素

    

textEncodingOverride

屬性 
textEncodingOverride:String

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0

HTMLLoader 內容使用的字元編碼,覆寫 HTML 網頁中的任何設定。HTML 網頁會在 meta 標籤中指定字元編碼,如下所示:

<meta http-equiv="content-type" content="text/html" charset="ISO-8859-1">

這個設定也會覆寫 textEncodingFallback 屬性中的任何設定。

值已定義在 IANA 的「有效字元集」清單中。

在 HTML 內容載入之後設定 textEncodingOverride 屬性,可讓 AIR 使用指定的編碼來重新整理 HTML 內容。一旦 HTMLLoader 瀏覽至新頁面,如果您想要新頁面使用特定編碼,則必須重新設定屬性。

如果 HTML 網頁未指定編碼 (藉由使用 textEncodingFallback 屬性或 textEncodingOverride 屬性),則 HTML 內容會使用 ISO-8859-1 編碼。

textEncodingOverride 屬性設定為 null 會還原預設行為。



實作
    public function get textEncodingOverride():String
    public function set textEncodingOverride(value:String):void

相關 API 元素

    

useCache

屬性 
useCache:Boolean

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0

在這個物件所發出的 HTTP 要求取得資料之前,指定是否應查閱本機快取。

預設值為 initialized from URLRequestDefaults.useCache。



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

相關 API 元素

    

userAgent

屬性 
userAgent:String

執行階段版本: AIR 1.0

來自這個 HTMLLoader 物件的任何即將發出內容要求中所使用的使用者代理字串。

若要設定使用者代理字串,請在呼叫 load() 方法之前先設定 HTMLLoader 物件的 userAgent 屬性。「不」使用傳遞給 load() 方法之 URLRequest 物件的 userAgent 屬性。

您可以藉由設定 URLRequestDefaults.userAgent 屬性,設定應用程式網域中所有 HTMLLoader 物件使用的預設使用者代理字串。如果未設定 HTMLLoader 物件的 userAgent 屬性 (或是如果此值設定為 null),則使用者代理字串會設定為靜態 URLRequestDefaults.userAgent 屬性的值。

如果未設定 HTMLLoader 的 userAgent 屬性值,也未設定 URLRequestDefaults.userAgent 屬性值,則會使用預設值做為使用者代理字串。這個預設值根據執行階段作業系統 (如 Mac OS、Linux 或 Windows)、執行階段語言和執行階段版本而有所不同,如下列範例所示:

  • "Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/526.9+ (KHTML, like Gecko) AdobeAIR/1.5"
  • "Mozilla/5.0 (Windows; U; en) AppleWebKit/526.9+ (KHTML, like Gecko) AdobeAIR/1.5"
  • "Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/526.9+ (KHTML, like Gecko) AdobeAIR/1.5"



實作
    public function get userAgent():String
    public function set userAgent(value:String):void

相關 API 元素

    

width

屬性 
width:Number[覆寫]

執行階段版本: AIR 1.0

指定所呈現 HTML 畫布矩形的寬度。這是 HTMLLoader 顯示物件的寬度,以像素為單位。width 最大值為 4095 像素。變更這個屬性會使 HTMLLoader 物件重新顯示 HTML 文件。為了回應這個屬性變更,可能會傳送 htmlBoundsChange 事件。當您設定 HTMLLoader 物件的 widthheight 屬性時,物件邊界會變更但內容不會縮放 (其他類型的顯示物件也是如此)。



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

window

屬性 
window:Object  [唯讀]

執行階段版本: AIR 1.0

HTML 控制項中所載入內容的全域 JavaScript 物件。



實作
    public function get window():Object
建構函式詳細資料
    

HTMLLoader

()建構函式
public function HTMLLoader()

執行階段版本: AIR 1.0

建立 HTMLLoader 物件。

方法詳細資訊

    cancelLoad

()方法
public function cancelLoad():void

執行階段版本: AIR 1.0

取消進行中的任何載入作業。

    createRootWindow

()方法 
public static function createRootWindow(visible:Boolean = true, windowInitOptions:NativeWindowInitOptions = null, scrollBarsVisible:Boolean = true, bounds:Rectangle = null):flash.html:HTMLLoader

執行階段版本: AIR 1.0

建立一個包含 HTMLLoader 物件的新 NativeWindow 物件。使用由這個方法傳回的 HTMLLoader 物件,以載入 HTML 內容。

根據預設 (呼叫這個方法但未設定參數時),新視窗會使用標準系統顏色並包含內容的捲軸控制項。您可以設定參數以變更新視窗的屬性。

在視窗載入內容並套用樣式表時,可能會發生小的圖形干擾。若要避免出現不連續的情況,請將 visible 參數設為 false。載入視窗且配置其內容後,請將 window.nativeWindow.visible 屬性設為 true,或呼叫 window.nativeWindow.activate() 方法以顯現它。

參數

visible:Boolean (default = true) — 指出視窗是否可見。
 
windowInitOptions:NativeWindowInitOptions (default = null) — 指定視窗初始化選項;如果為 null,則使用預設 NativeWindowInitOptions 值。
 
scrollBarsVisible:Boolean (default = true) — 指定視窗是否提供捲軸。
 
bounds:Rectangle (default = null) — 如果不是 null,則會指定視窗邊界。如果 xywidthheight 當中的任何一個是 NaN,視窗的對應尺寸就是預設值。

傳回值
flash.html:HTMLLoader — 在新 NativeWindow 物件之舞台上的新 HTMLLoader 物件。

    getHistoryAt

()方法 
public function getHistoryAt(position:uint):flash.html:HTMLHistoryItem

執行階段版本: AIR 1.0

在指定位置傳回操作記錄項目。

參數

position:uint — 操作記錄清單中的位置。

傳回值
flash.html:HTMLHistoryItem — 指定位置上操作記錄項目的 URLRequest 物件。

相關 API 元素

    historyBack

()方法 
public function historyBack():void

執行階段版本: AIR 1.0

如果可能,在瀏覽器操作記錄中向後瀏覽。

呼叫 HTMLLoader 物件的這個方法與呼叫 HTML 網頁中 JavaScript window.history 屬性的 back() 方法具有相同作用。

這個函數不會擲出錯誤。

相關 API 元素

    historyForward

()方法 
public function historyForward():void

執行階段版本: AIR 1.0

如果可能,在瀏覽器操作記錄中向前瀏覽。

呼叫 HTMLLoader 物件的這個方法與呼叫 HTML 網頁中 JavaScript window.history 屬性的 forward() 方法具有相同作用。

這個函數不會擲出錯誤。

相關 API 元素

    historyGo

()方法 
public function historyGo(steps:int):void

執行階段版本: AIR 1.0

在瀏覽器操作記錄中瀏覽指定的步驟數。如果為正值則向前瀏覽,如果為負值則向後瀏覽。以零值瀏覽會強制重新載入。

這個方法相當於呼叫 HTML 網頁中 JavaScript window.history 屬性的 go() 方法。

這個函數不會擲出錯誤。

參數

steps:int — 操作記錄清單中向前移動 (正值) 或向後移動 (負值) 的步驟數。

相關 API 元素

    load

()方法 
public function load(urlRequestToLoad:URLRequest):void

執行階段版本: AIR 1.0

使用 urlRequestToLoad 參數所指定網站中的資料來載入 HTMLLoader 物件。呼叫這個方法一開始會將 loaded 屬性設定為 false。這個方法會起始一個一定以非同步方式完成的作業。

以隱含方式呼叫這個方法會取消以這個方法或 loadString() 方法所起始、任何待處理的前一個載入作業。絕不會傳送前一個載入作業的 complete 事件。

可能永遠不會傳送 complete 事件。這發生於載入 HTMLLoader 物件中的任何 HTML 內容從未完整下載時。如果 HTML 內容參考無限重複產生內容之 CGI 指令碼的 URL,就會發生這種情況。

參數

urlRequestToLoad:URLRequest — URLRequest 物件,包含要載入 URL 的相關資訊。除了要載入的 URL 之外,URLRequest 物件還包含可定義 HTTP 表單送出方法 (GET 或 POST) 的屬性、與要求一併傳輸的任何資料,並要求標頭。

相關 API 元素

    loadString

()方法 
public function loadString(htmlContent:String):void

執行階段版本: AIR 1.0

使用 HTML 字串中包含的 HTML 內容來載入 HTMLLoader 物件。當字串中的 HTML 完成呈現時,會傳送 complete 事件。complete 事件一定是以非同步方式傳送。

以隱含方式呼叫這個方法會取消以這個方法或 load() 方法所起始、任何待處理的前一個載入作業。絕不會傳送前一個載入作業的 complete 事件。

如果字串中指定的 HTML 沒有外部資源的參考,這個方法就會以同步方式顯示 HTML。不過,仍會以非同步方式傳送 complete 事件。在呼叫這個函數之後,如果這個類別的 loaded 屬性為 true,則會以同步方式顯示 htmlContent 引數中指定的 HTML 內容。

可能永遠不會傳送 complete 事件。這發生於載入 HTMLLoader 物件中的任何 HTML 內容從未完整下載時。如果 HTML 內容參考無限重複產生內容之 CGI 指令碼的 URL,就會發生這種情況。

只有當 placeLoadStringContentInApplicationSandbox 屬性設定為 true 時,透過 loadString() 方法所載入的內容才會放入應用程式安全執行程序中。

參數

htmlContent:String — 字串,包含要載入 HTMLLoader 物件的 HTML 內容。

相關 API 元素

    reload

()方法 
public function reload():void

執行階段版本: AIR 1.0

從目前位置重新載入頁面。

事件詳細資訊
    

complete

事件
事件物件類型: flash.events.Event
屬性 Event.type = flash.events.Event.COMPLETE

執行階段版本: AIR 1.0

指出 loadStringload 方法所要求的最後一個載入作業已完成。當 JavaScript load 事件已在 HTMLLoader 物件的 HTML DOM 上觸發之後,就會傳送此事件。這個事件一定是以非同步方式傳送。這個事件的事件處理常式可以呼叫 HTMLLoader 物件的任何方法或存取其任何屬性。

Event.COMPLETE 常數會定義 complete 事件物件的 type 屬性值。

這個事件具有下列屬性:

屬性
bubblesfalse
cancelablefalse;沒有要取消的預設行為指令。
currentTarget正主動使用事件偵聽程式處理 Event 物件的物件。
target已完成載入的網路物件。

相關 API 元素

    

htmlBoundsChange

事件  
事件物件類型: flash.events.Event
屬性 Event.type = flash.events.Event.HTML_BOUNDS_CHANGE

執行階段版本: AIR 1.0

指出 HTMLLoader 物件的 contentWidthcontentHeight 屬性或兩者已變更。例如,新影像或其他內容載入可能產生變更。事件處理常式可以呼叫 HTMLLoader 物件的任何方法或存取其任何屬性。

HTMLLoader 物件可以在起始載入作業之後的任何時間傳送這個事件,甚至在此物件已經傳送 complete 事件之後。

Event.HTML_BOUNDS_CHANGE 常數會定義 htmlBoundsChange 事件物件的 type 屬性值。

這個事件具有下列屬性:

屬性
bubblesfalse
cancelablefalse;沒有要取消的預設行為指令。
currentTargetHTMLLoader 物件。
targetHTMLLoader 物件。

相關 API 元素

    

htmlDOMInitialize

事件  
事件物件類型: flash.events.Event
屬性 Event.type = flash.events.Event.HTML_DOM_INITIALIZE

執行階段版本: AIR 1.0

指出為了回應載入作業,已建立 HTML DOM。在傳送此事件時,HTMLLoader 物件的 load()loadString() 方法會擲出例外。在傳送此事件時,如果設定或呼叫任何 JavaScript 物件的任何屬性或方法,而該 JavaScript 物件可從控制 HTMLLoader 物件中所載入 URL 之 HTMLLoader 物件的 window 屬性來進行存取,也會擲出例外。例如,透過設定 HTMLLoader 物件的 window 屬性來設定 window.location 會產生 JavaScript 例外。

Event.HTML_DOM_INITIALIZE 常數會定義 htmlDOMInitialize 事件物件的 type 屬性值。

這個事件具有下列屬性:

屬性
bubblesfalse
cancelablefalse;沒有要取消的預設行為指令。
currentTargetHTMLLoader 物件。
targetHTMLLoader 物件。

相關 API 元素

    

htmlRender

事件  
事件物件類型: flash.events.Event
屬性 Event.type = flash.events.Event.HTML_RENDER

執行階段版本: AIR 1.0

指出 HTMLLoader 物件中的內容顯示都是最新的。每當 HTML 內容發生任何呈現變更時,就會頻繁地傳送這個事件。例如,當使用者按一下連結之後顯示新內容,或當網頁中的 JavaScript 呈現 HTML 時,會傳送這個事件。事件偵聽程式可以呼叫 HTMLLoader 的任何方法或存取其任何屬性。

這個事件的處理常式應該檢查 HTMLLoader 物件的 contentWidthcontentHeight 屬性,以便更新與它相關聯的任何捲軸。

HTMLLoader 物件可以在起始載入作業之後的任何時間傳送這個事件,甚至在此物件已經傳送 complete 事件之後。

Event.HTML_RENDER 常數會定義 htmlRender 事件物件的 type 屬性值。

這個事件具有下列屬性:

屬性
bubblesfalse
cancelablefalse;沒有要取消的預設行為指令。
currentTargetHTMLLoader 物件。
targetHTMLLoader 物件。
    

locationChange

事件  
事件物件類型: flash.events.LocationChangeEvent
屬性 LocationChangeEvent.type = flash.events.LocationChangeEvent.LOCATION_CHANGE

執行階段版本: AIR 2.7

指出 HTMLLoader 物件的 location 屬性已變更。這個事件的事件處理常式可以呼叫 HTMLLoader 物件的任何方法或存取其任何屬性。

LocationChangeEvent 類型的 locationChange 事件是由使用 AIR namespace 2.7 和更新版本之應用程式中的 HTMLLoader 所傳送。在舊版 AIR 中,傳送的事件物件是 Event 類別的實體。

每次位置變更後傳送。

相關 API 元素

    

locationChange

事件  
事件物件類型: flash.events.Event
屬性 Event.type = flash.events.Event.LOCATION_CHANGE

執行階段版本: AIR 1.0

指出 HTMLLoader 物件的 location 屬性已變更。這個事件的事件處理常式可以呼叫 HTMLLoader 物件的任何方法或存取其任何屬性。

Event 類型的 locationChange 事件是由使用 AIR 2.7 以前版本命名空間之應用程式中的 HTMLLoader 所傳送。在 AIR 2.7 和更新版本中,事件物件是 LocationChangeEvent 類別的實體,可提供其他設定為新頁面 URL 的 location 屬性。

Event.LOCATION_CHANGE 常數會定義 locationChange 事件物件的 type 屬性值。

這個事件具有下列屬性:

屬性
bubblesfalse
cancelablefalse;沒有要取消的預設行為指令。
currentTargetHTMLLoader 物件。
targetHTMLLoader 物件。

相關 API 元素

    

locationChanging

事件  
事件物件類型: flash.events.LocationChangeEvent
屬性 LocationChangeEvent.type = flash.events.LocationChangeEvent.LOCATION_CHANGING

語言版本: ActionScript 3.0
執行階段版本: AIR 2.7

發出訊號,表示 HTMLLoader 物件的 location 屬性即將變更。

locationChanging 事件只會在透過使用者互動而使位置變更時傳送,例如當使用者按一下連結,或是由 HTMLLoader 內執行的程式碼傳送,例如用戶端重新導向。根據預設,新位置將顯示在此 HTMLLoader 物件中。您可以呼叫事件物件的 preventDefault() 方法,以取消預設行為。例如,您可以使用 flash.net.navigateToURL() 函數,根據事件物件的 location 屬性,在系統瀏覽器中開啟頁面。

當您呼叫下列方法時,不會傳送 locationChanging() 事件:

  • load()
  • loadString()
  • reload()
  • historyBack()
  • historyForward()
  • historyGo()

此外,當 navigateInSystemBrowser 屬性為 true 且目的地頁面在系統瀏覽器中開啟時,不會傳送此事件,因為 HTMLLoader 位置未變更。

LOCATION_CHANGING 常數會定義頁面位置變更之前所傳送 type 屬性 LocationChangeEvent 物件的值。
範例  ( 如何使用本範例 )

下列程式碼會初始化 HTMLLoader 物件、設定其寬度和高度、載入 URL http://www.adobe.com,並將物件加入顯示清單。如果使用者 (或頁面上的 JavaScript) 嘗試瀏覽至開頭不是基底 URL 的 URL,就無法進行瀏覽:
package{
    import flash.display.Sprite;
    import flash.html.HTMLLoader;
    import flash.net.URLRequest;
    
    public class LocationChanging extends Sprite
    {
        var htmlLoader:HTMLLoader = new HTMLLoader();
        public function LocationChanging()
        {
            htmlLoader.width = stage.stageWidth;
            htmlLoader.height = stage.stageHeight;        
            htmlLoader.addEventListener( LocationChangeEvent.LOCATION_CHANGING, onLocationChanging );
            htmlLoader.load( new URLRequest( "http://www.adobe.com" ) );
            this.addChild( htmlLoader );
        }
    
        private function onLocationChanging( event:LocationChangeEvent ):void
        {
            trace( "Location changing: " + event.location );
        
            if ( event.location.indexOf( "http://www.adobe.com" ) < 0 ) 
            {
                event.preventDefault();
            }
        }
    }
}
    

scroll

事件  
事件物件類型: flash.events.Event
屬性 Event.type = flash.events.Event.SCROLL

執行階段版本: AIR 1.0

指出 HTMLLoader 物件已變更 scrollHscrollV 屬性。當 HTMLLoader 物件中執行的 JavaScript 叫用 window 物件的 scrollTo() 方法,而所需的位置尚未顯示時,HTMLLoader 物件就會傳送這個事件。當 ActionScript 程式碼變更 scrollHscrollV 屬性時,不會傳送此事件。事件處理常式可以呼叫 HTMLLoader 物件的任何方法或存取其任何屬性。

這個事件的事件處理常式應該檢查 scrollHscrollV 屬性,以更新與 HTMLLoader 物件關聯的任何捲軸。

HTMLLoader 物件可以在起始載入作業之後的任何時間傳送這個事件,甚至在此物件已經傳送 complete 事件之後。

Event.SCROLL 常數會定義 scroll 事件物件的 type 屬性值。

這個事件具有下列屬性:

屬性
bubblesfalse
cancelablefalse;沒有要取消的預設行為指令。
currentTarget正主動使用事件偵聽程式處理 Event 物件的物件。
target已經過捲動的 TextField 物件。 這個 target 屬性並非永遠都是註冊事件偵聽之顯示清單中的物件。請使用 currentTarget 屬性,存取目前正在處理該事件之顯示清單中的物件。
    

uncaughtScriptException

事件  
事件物件類型: flash.events.HTMLUncaughtScriptExceptionEvent
屬性 HTMLUncaughtScriptExceptionEvent.type = flash.events.HTMLUncaughtScriptExceptionEvent.UNCAUGHT_SCRIPT_EXCEPTION

執行階段版本: AIR 1.0

指出 HTMLLoader 物件中發生未捕捉的 JavaScript 例外。事件處理常式可以呼叫 HTMLLoader 物件的任何方法或存取其任何屬性。此事件是可以取消的,在 AIR 除錯啟動程式中執行時,預設行為是將 JavaScript 堆疊傳送至追蹤輸出。

HTMLUncaughtScriptExceptionEvent.UNCAUGHT_SCRIPT_EXCEPTION 常數會定義 uncaughtScriptException 事件物件的 type 屬性值。

這個事件具有下列屬性:

屬性
bubblesfalse
cancelablefalse;沒有要取消的預設行為指令。
exceptionValue評估 throw 陳述式中導致未捕捉例外的運算式所得出的結果。
stackTrace在執行導致未捕捉例外的 throw 陳述式時,代表堆疊追蹤的物件陣列。
targetHTMLLoader 物件。

相關 API 元素

HTMLLoader.1.as

下列程式碼會初始化 HTMLLoader 物件、設定其寬度和高度、載入 URL http://www.adobe.com,並將物件加入顯示清單:
package {
    import flash.display.Sprite;
    import flash.html.HTMLLoader;
    import flash.net.URLRequest;

    public class HTMLLoaderExample extends Sprite
    {
        public function HTMLLoaderExample()
        {
            var html:HTMLLoader = new HTMLLoader();
            var urlReq:URLRequest = new URLRequest("http://www.adobe.com/");
            html.width = stage.stageWidth;
            html.height = stage.stageHeight;
            html.load(urlReq); 
            addChild(html);
        }
    }
}




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

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