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

最上層 

套件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 範例
法律聲明

SWF 檔案中任何使用 ActionScript 的部分,或任何使用者定義的類別中,都有最上層或全域函數。ActionScript 2.0 中大多數的全域函數都已移轉至類別中。
全域函數
 函數定義自
  
建立新的陣列。
最上層
  
Boolean(expression:Object):Boolean
將 expression 參數轉換成 Boolean 值並傳回此值。
最上層
  
將已編碼的 URI 解碼成字串。
最上層
  
將已編碼的 URI 組件解碼成字串。
最上層
  
將字串編碼成有效的 URI (統一資源識別項)。
最上層
  
會將字串編碼成有效的 URI 組件。
最上層
  
將參數轉換成字串,並以 URL 編碼格式將其編碼,其中大部分非英數字元都會以 % 十六進位序列取代。
最上層
  
int(value:Number):int
會將指定的數值轉換成整數值。
最上層
  
如果值是有限數字,則傳回 true;如果值是 Infinity 或 -Infinity,則傳回 false。
最上層
  
如果值是 NaN (非數字),則會傳回 true。
最上層
  
會判斷指定的字串是否為 XML 元素或屬性的有效名稱。
最上層
  
Number(expression:Object):Number
會將指定的值轉換成 Number 值。
最上層
  
ActionScript 3.0 中的每個值都是物件,這表示針對某個值呼叫 Object() 時,便會傳回該值。
最上層
  
將字串轉換成浮點數。
最上層
  
parseInt(str:String, radix:uint = 0):Number
將字串轉換成整數。
最上層
  
String(expression:Object):String
傳回指定參數的字串表示法。
最上層
  
trace(... arguments):void
會在除錯時顯示運算式,或是寫入到記錄檔中。
最上層
  
會將指定的數值轉換成無正負號的整數值。
最上層
  
將參數 str 評估為字串、將 URL 編碼格式的字串解碼 (將所有十六進位序列轉換成 ASCII 字元),然後傳回字串。
最上層
  
Vector(sourceArray:Object):Vector.<T>
建立新的 Vector 實體,其中的元素都是指定之資料類型的實體。
最上層
  
XML(expression:Object):XML
會將物件轉換成 XML 物件。
最上層
  
XMLList(expression:Object):XMLList
物件會轉換成 XMLList 物件。
最上層


每一個 Script 中都有最上層或全域常數,而且在文件中的每一個時間軸和範圍內,都可以看見這些常數。
全域常數
 常數定義自
  Infinity : Number
代表正 Infinity 的特殊值。
最上層
  -Infinity : Number
代表負 Infinity 的特殊值。
最上層
  NaN : Number
Number 資料類型的特殊成員,代表「不是數字」(NaN) 的值。
最上層
  undefined : *
套用至未初始化之不具類型變數的特殊值,或是套用至未初始化之動態物件屬性的特殊值。
最上層
常數詳細資訊

-Infinity

常數
public const -Infinity:Number

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0, Flash Player 9

代表負 Infinity 的特殊值。這個常數的值與 Number.NEGATIVE_INFINITY 的值相同。

相關 API 元素


範例  ( 如何使用本範例 )

除以 0 的結果是 -Infinity,但是只限除數值為負值時。
trace(0 / 0);  // NaN
trace(7 / 0);  // Infinity
trace(-7 / 0); // -Infinity


Infinity

常數 
public const Infinity:Number

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0, Flash Player 9

代表正 Infinity 的特殊值。此常數值等於 Number.POSITIVE_INFINITY

相關 API 元素


範例  ( 如何使用本範例 )

除以 0 的結果是 Infinity,但是只限除數值為正值時。
trace(0 / 0);  // NaN
trace(7 / 0);  // Infinity
trace(-7 / 0); // -Infinity


NaN

常數 
public const NaN:Number

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0, Flash Player 9

Number 資料類型的特殊成員,代表「不是數字」(NaN) 的值。當數學運算式產生不能以數字表示的值,結果就是 NaN。下列清單說明產生 NaN 的常見運算式。

  • 除以 0 的結果是 NaN,但是只限除數也是 0 時。如果除數大於 0,除以 0 則會產生 Infinity。如果除數小於 0,除以 0 則會產生 -Infinity
  • 負值的平方根;
  • 數字的反正弦函數值在 0 到 1 的有效範圍外;
  • Infinity 減掉 Infinity
  • Infinity-Infinity 除以 Infinity-Infinity
  • Infinity-Infinity 乘以 0。

NaN 值不是 int 或 uint 資料類型的成員。

NaN 值不被視為等於其他任何的值 (包括 NaN 本身),因此使用相等運算子來測試運算式是否為 NaN 是不可能的。若要判斷數字是否為 NaN,請使用 isNaN()

相關 API 元素

undefined

常數 
public const undefined:*

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0, Flash Player 9

套用至未初始化之不具類型變數的特殊值,或是套用至未初始化之動態物件屬性的特殊值。在 ActionScript 3.0 中,只有不具類型的變數才能擁有 undefined的值,在 ActionScript 1.0 與 ActionScript 2.0 中則並非如此。例如,下列兩個變數由於不具類型且未初始化,所以都是 undefined

  • var foo;
  • var bar:*;

undefined 值也會套用到動態物件的未初始化或未定義屬性。例如,如果物件是 Object 類別的實體,任何動態加入的屬性值都會是 undefined (直到對該屬性指派值為止)。

搭配各種函數使用 undefined 時,結果都會有所不同:

  • String(undefined) 傳回的值是 "undefined" ( undefined 會轉換成字串)。
  • Number(undefined) 傳回的值是 NaN
  • int(undefined)uint(undefined) 傳回的值是 0。
  • Object(undefined) 傳回的值是新的 Object 實體。
  • undefined 指派給有類型的變數時,其值便會轉換成該資料類型的預設值。

請勿混淆 undefinednull。如果用相等運算子 (==) 來比較 nullundefined,其結果會是相等的。然而,如果用嚴謹相等運算子 (===) 來比較 (nullundefined),其結果不會相等。

相關 API 元素


範例  ( 如何使用本範例 )

下列範例會宣告無類型的變數 myVar 而不初始化該變數。由於變數是無類型的,myVar 的值會是 undefined。無論變數沒有類型附註,或是使用特殊的 (*) 無類型附註 (var myVar:*;),都會出現這種情形。
// trace value of untyped and uninitialized variable
var myVar;
trace(myVar); // undefined

相同的規則會套用至動態物件的未初始化屬性。例如,對於動態類別Aobj 實體來說,obj.propName 的值 (obj 實體的未初始化屬性) 為 undefined
dynamic class A {}
var obj:A = new A()

// trace undefined property of obj
trace(obj.propName); // undefined

函數詳細資訊

Array

()函數
public function Array(... args):Array

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0, Flash Player 9, Flash Lite 4

建立新的陣列。陣列長度可以為零或更長,或是以單一指定物件填入的陣列。

  • 呼叫 Array() 而不使用任何引數,便會傳回空的陣列。
  • 使用單一整數引數呼叫 Array(),便會傳回具有指定之長度的陣列,不過其元素會有未定義的值。
  • 以指定物件呼叫 Array() 會傳回包含指定物件元素的陣列。
使用 Array() 函數類似於使用 Array 類別建構函式建立陣列,但是 Array() 函數僅允許一個參數值或不使用參數值。 您無法使用 Array() 函數將數個值填入新陣列。

注意:如果嘗試使用 Array() 函數建立新陣列,並傳送數個值作為參數以填入陣列,將會出現編譯器錯誤。Array() 函數僅允許一個參數。請改用 Array 類別建構函式,以便建立陣列並將數個值填入陣列。

Array() 函數無法將物件類型轉換為陣列。當引數不是基本值時,請對明確類型轉換或類型轉型使用 as 運算子。如需詳細資訊,請參閱本項目的「範例」一節。若將物件作為參數傳送至 Array() 函數,將會建立包含物件作為元素的新陣列。

參數

... args — 若是建立空白陣列不需要傳送引數,特定長度的單一陣列則可以傳送單一整數引數,包含單一指定物件的陣列則可以傳送單一物件。

傳回值
Array — 長度為零或更長的陣列。

相關 API 元素


範例  ( 如何使用本範例 )

下列範例會示範當引數不是基本值時 Array() 函數的行為。轉型為陣列的常見使用情況,是轉換以陣列格式儲存其值的 Object 實體。如果使用 Object 類型或是其他任何非基本資料類型的引數來呼叫 Array(),會將此物件的參照儲存在新陣列的元素中。換言之,如果唯一傳遞的引數是物件,該物件的參照就會成為新陣列的第一個元素。
var obj:Object = [ "a", "b", "c" ];
      
var newArray:Array = Array( obj );

trace(newArray == obj);    // false
trace(newArray[0] == obj); // true
trace(newArray[0][0])      // a
trace(newArray[0][1])      // b
trace(newArray[0][2])      // c

若要將 obj 轉型成陣列,請使用 as 運算子,這個運算子會在 obj 是有效陣列時傳回陣列參照,否則會傳回 null
var obj:Object = [ "a", "b", "c" ];
      
var newArray:Array = obj as Array;

trace(newArray == obj); // true
trace(newArray[0]);     // a
trace(newArray[1]);     // b
trace(newArray[2]);     // c

Boolean

()函數 
public function Boolean(expression:Object):Boolean

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0, Flash Player 9, Flash Lite 4

expression 參數轉換成 Boolean 值,並傳回該值。

傳回的值取決於引數的資料類型與值,如下表所述:

輸入值範例傳回值
0Boolean(0)false
NaNBoolean(NaN)false
Number (非 0NaN)Boolean(4)true
空字串Boolean("")false
非空字串Boolean("6")true
nullBoolean(null)false
undefinedBoolean(undefined)false
Object 類別的實體Boolean(new Object())true
無引數Boolean()false

不同於舊版的 ActionScript,Boolean() 函數會傳回與 Boolean 類別建構函式相同的結果。

參數

expression:Object — 要轉換成 Boolean 值的運算式或物件。

傳回值
Boolean — 轉換成 Boolean 值的結果。

decodeURI

()函數 
public function decodeURI(uri:String):String

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0, Flash Player 9, Flash Lite 4

將已編碼的 URI 解碼成字串。傳回字串,其中所有先前由 encodeURI 函數編碼的字元,都會還原成其未編碼的形式。

下表顯示「不會」decodeURI 函數解碼成字元的逸出序列集合。使用 decodeURIComponent() 可解碼此表格中的逸出序列。

沒有解碼的逸出序列對等的字元
%23#
%24$
%26&
%2B+
%2C,
%2F/
%3A:
%3B;
%3D=
%3F?
%40@

參數

uri:String — 使用 encodeURI 函數編碼的字串。

傳回值
String — 當中所有先前由 encodeURI 函數逸出的字元,都會還原成其未逸出的形式。

相關 API 元素


範例  ( 如何使用本範例 )

package {
    import flash.display.Sprite;

    public class DecodeURIExample extends Sprite {
        public function DecodeURIExample() {
            var uri:String = "http://www.example.com/application.jsp?user=<user name='some user'></user>";
            var encoded:String = encodeURI(uri);
            var decoded:String = decodeURI(encoded);
            trace(uri);        // http://www.example.com/application.jsp?user=<user name='some user'></user>
            trace(encoded);    // http://www.example.com/application.jsp?user=%3Cuser%20name='some%20user'%3E%3C/user%3E
            trace(decoded);    // http://www.example.com/application.jsp?user=<user name='some user'></user>
        }
    }
}

decodeURIComponent

()函數 
public function decodeURIComponent(uri:String):String

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0, Flash Player 9, Flash Lite 4

將已編碼的 URI 組件解碼成字串。傳回字串,當中所有先前由 encodeURIComponent 函數逸出的字元,都會還原成其未編碼的形式。

此函數不同於 decodeURI() 函數,只會在 URI 字串的部分使用,這種部分稱為 URI 組件。URI 組件是在稱為「組件分隔符號」(: / ; 和 ?)。URI 組件的常見範例是 "http" 與 "www.adobe.com"。

此函數與 decodeURI() 之間的另一項重要差別在於,因為此函數認為本身在處理 URI 組件,因此會將代表特殊分隔符號字元 (; / ? : @ & = + $ , #) 的跳脫序列,視為應該解碼的一般文字。

參數

uri:String — 使用 encodeURIComponent 函數編碼的字串。

傳回值
String — 當中所有先前由 encodeURIComponent 函數逸出的字元,都會還原成其未逸出的形式。

相關 API 元素

encodeURI

()函數 
public function encodeURI(uri:String):String

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0, Flash Player 9, Flash Lite 4

將字串編碼成有效的 URI (統一資源識別項)。完整的 URI 轉換成字串,其中所有的字元都編碼成 UTF-8 逸出序列 (除非有字元屬於小的基本字元群組)。

下表顯示「不會」encodeURI 函數轉換成 UTF-8 逸出序列的完整基本字元集。

未編碼的字元
0 1 2 3 4 5 6 7 8 9
a b c d e f g h i j k l m n o p q r s t u v w x y z
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
; / ? : @ & = + $ , #
- _ . ! ~ * ' ( )

參數

uri:String — 代表完整 URI 的字串。

傳回值
String — 字串,其中某些字元編碼成 UTF-8 逸出序列。

相關 API 元素


範例  ( 如何使用本範例 )

package {
    import flash.display.Sprite;

    public class EncodeURIExample extends Sprite {
        public function EncodeURIExample() {
            var uri:String = "http://www.example.com/application.jsp?user=<user name='some user'></user>";
            var encoded:String = encodeURI(uri);
            var decoded:String = decodeURI(encoded);
            trace(uri);        // http://www.example.com/application.jsp?user=<user name='some user'></user>
            trace(encoded);    // http://www.example.com/application.jsp?user=%3Cuser%20name='some%20user'%3E%3C/user%3E
            trace(decoded);    // http://www.example.com/application.jsp?user=<user name='some user'></user>
        }
    }
}

encodeURIComponent

()函數 
public function encodeURIComponent(uri:String):String

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0, Flash Player 9, Flash Lite 4

會將字串編碼成有效的 URI 組件。將 URI 的子字串轉換成字串,其中所有的字元都編碼成 UTF-8 逸出序列 (除非有字元屬於非常小的基本字元群組)。

encodeURIComponent() 函數不同於 encodeURI() 函數,只會在 URI 字串的部分 (這種部分稱為 URI 組件) 使用。URI 組件是在稱為「組件分隔符號」(: / ; 和 ?)。URI 組件的常見範例是 "http" 與 "www.adobe.com"。

此函數與 encodeURI() 之間的另一項重要差別在於,因為此函數假設本身在處理 URI 組件,因此會將代表特殊分隔符號字元 (; / ? : @ & = + $ , #) 的跳脫序列,視為應該編碼的一般文字。

下表顯示「不會」encodeURIComponent 函數轉換成 UTF-8 逸出序列的完整基本字元集。

未編碼的字元
0 1 2 3 4 5 6 7 8 9
a b c d e f g h i j k l m n o p q r s t u v w x y z
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
- _ . ! ~ * ' ( )

參數

uri:String

傳回值
String

相關 API 元素

escape

()函數 
public function escape(str:String):String

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0, Flash Player 9, Flash Lite 4

將參數轉換成字串,並以 URL 編碼格式將其編碼,其中所有非英數字元都會以 % 十六進位序列取代。在 URL 編碼字串中使用時,百分比符號 (%) 是用來引入反斜線字元的,不等同於模除運算子 (% )。

下表顯示「不會」escape() 函數轉換成跳脫序列的所有字元。

未編碼的字元
0 1 2 3 4 5 6 7 8 9
a b c d e f g h i j k l m n o p q r s t u v w x y z
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
@ - _ . * + /

注意:請使用 encodeURIComponent() 函數取代 escape() 函數,以便將特殊分隔符號字元 (@ + /) 視為一般文字來編碼。

參數

str:String — 要轉換成字串並以 URL 編碼格式進行編碼的運算式。

傳回值
String — 以 URL 編碼的字串。

相關 API 元素

int

()函數 
public function int(value:Number):int

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0, Flash Player 9, Flash Lite 4

會將指定的數值轉換成整數值。十進位值會在小數點處截斷。

參數

value:Number — 要轉換成整數的值。

傳回值
int — 轉換之後的整數值。

相關 API 元素

isFinite

()函數 
public function isFinite(num:Number):Boolean

語言版本: ActionScript 3.0.
執行階段版本: AIR 1.0, Flash Player 9, Flash Lite 4

如果值是有限數字,則傳回 true;如果值是 Infinity-Infinity,則傳回 false正無限大負無限大表示發生數學運算上的錯誤狀況,如除以 0。

參數

num:Number — 要評估為有限或無限的數字。

傳回值
Boolean — 如果值是有限數,即傳回 true,如果值是無限大或負無限大,則傳回 false

isNaN

()函數 
public function isNaN(num:Number):Boolean

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0, Flash Player 9, Flash Lite 4

如果值是 NaN NaN (非數字),則會傳回 trueisNaN() 函數有助於檢查數學運算式是否成功地評估為數字。isNaN() 最常見的用法是檢查 parseInt()parseFloat() 函數傳回的值。NaN 值是 Number 資料類型的特殊成員,代表「不是數字」的值。

注意NaN 值不是 int 或 uint 資料類型的成員。

下表說明各種輸入類型與值中的 isNaN() 傳回值 (如果您的編譯器警告設定為「嚴謹模式」,下列有些作業會產生編譯器警告)。

輸入類型/值範例傳回值
0 除以 0isNaN(0/0)true
除以 0 的非零數字isNaN(5/0)false
負值的平方根isNaN(Math.sqrt(-1))true
數字的反正弦函數值大於 1 或小於 0isNaN(Math.asin(2))true
可以轉換成 Number 的字串isNaN("5")false
不能轉換成 Number 的字串isNaN("5a")true

參數

num:Number — 要評估的數值或數學運算式。

傳回值
Boolean — 如果此值是NaN (不是數字),則會傳回 true,否則會傳回 false

isXMLName

()函數 
public function isXMLName(str:String):Boolean

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0, Flash Player 9, Flash Lite 4

會判斷指定的字串是否為 XML 元素或屬性的有效名稱。

參數

str:String — 要評估的字串。

傳回值
Boolean — 如果 str 引數是有效的 XML 名稱,則傳回 true;否則便會傳回 false

Number

()函數 
public function Number(expression:Object):Number

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0, Flash Player 9, Flash Lite 4

會將指定的值轉換成 Number 值。下表顯示各種輸入類型的結果:

輸入類型/值範例傳回值
undefinedNumber(undefined)NaN
nullNumber(null)0
trueNumber(true)1
falseNumber(false)0
NaNNumber(NaN)NaN
空字串Number("")0
轉換成 Number 的字串Number("5")數字 (例如 5 )
無法轉換成 Number 的字串Number("5a")NaN

參數

expression:Object — 要轉換成數字的值。

傳回值
Number — 轉換的數值

Object

()函數 
public function Object(value:Object):Object

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0, Flash Player 9, Flash Lite 4

ActionScript 3.0 中的每個值都是物件,這表示針對某個值呼叫 Object() 時,便會傳回該值。

參數

value:Object — 要轉換的物件或數字、字串或 Boolean 值。

傳回值
Objectvalue 參數所指定的值。

parseFloat

()函數 
public function parseFloat(str:String):Number

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0, Flash Player 9, Flash Lite 4

將字串轉換成浮點數。這個函數會讀取或「剖析」字串中的數字,並在讀取到不屬於此最初數字的字元前,傳回字串中的數字。如果這個字串的開頭是無法剖析的數字,parseFloat() 便會傳回 NaN。會忽略有效整數前面的空白字元與結尾的非數值字元。

參數

str:String — 要讀取並轉換成浮點數的字串。

傳回值
Number — 數字或 NaN (不是數字)。

parseInt

()函數 
public function parseInt(str:String, radix:uint = 0):Number

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0, Flash Player 9, Flash Lite 4

將字串轉換成整數。如果參數中指定的字串無法轉換成數字,這個函數便會傳回 NaN。以 0x 開頭的字串會解譯成十六進位的數字,不同於先前版本的 ActionScript,從 0 開始的整數「不會」 解譯為八進位數字。您必須針對八進位數字,將基數指定為 8。有效整數前面的空白字元與零,以及結尾的非數值字元都會遭到忽略。

參數

str:String — 要轉換成整數的字串。
 
radix:uint (default = 0) — 整數,代表要剖析的數字基數 (基底)。有效的值是從 2 到 36。

傳回值
Number — 數字或 NaN (不是數字)。

String

()函數 
public function String(expression:Object):String

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0, Flash Player 9, Flash Lite 4

傳回指定參數的字串表示法。

下表顯示各種輸入類型的結果:

輸入類型/值傳回值
undefinedundefined
null"null"
true"true"
false"false"
NaN"NaN"
字串字串
ObjectObject.toString()
Number數字的字串形式

參數

expression:Object — 要轉換成字串的運算式。

傳回值
String — 為 expression 參數傳遞之值的字串形式。

trace

()函數 
public function trace(... arguments):void

語言版本: ActionScript 3.0
執行階段版本: Flash Player 9, AIR 1.0, Flash Lite 4

會在除錯時顯示運算式,或是寫入到記錄檔中。單一 trace 陳述式可支援多個引數。如果 trace 陳述式中的任何引數包括不同於 String 的資料類型,追蹤函數便會叫用與該資料類型相關聯的 toString() 方法。例如,如果引數是 Boolean 值,追蹤函數便會叫用 Boolean.toString() 並顯示傳回值。

參數

... arguments — 要評估的一個或多個 (以逗號分隔的) 運算式。若為多個運算式,輸出的每個運算式之間會插入空格。


範例  ( 如何使用本範例 )

下列範例會使用 TraceExample 類別來示範如何使用 trace() 方法列印簡單的字串。一般而言,此訊息會列印到「除錯」主控台。
package {
    import flash.display.Sprite;

    public class TraceExample extends Sprite {

        public function TraceExample() {
            trace("Hello World");
        }
    }
}

uint

()函數 
public function uint(value:Number):uint

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0, Flash Player 9, Flash Lite 4

會將指定的數值轉換成無正負號的整數值。十進位值會在小數點處截斷。

下表說明各種輸入類型與值中的 uint() 傳回值。

輸入類型/值範例傳回值
undefineduint(undefined)0
nulluint(null)0
0uint(0)0
NaNuint(NaN)0
正浮點數uint(5.31)截斷的無正負號整數 (例如 5 )
負浮點數uint(-5.78)截斷成整數,然後套用負整數的規則
負整數uint(-5)uint.MAX_VALUE 與負整數的和 (例如,uint.MAX_VALUE + (-5) )
trueuint(true)1
falseuint(false)0
空字串uint("")0
轉換成 Number 的字串uint("5")數字
無法轉換成 Number 的字串uint("5a")0

參數

value:Number — 要轉換成整數的值。

傳回值
uint — 轉換之後的整數值。

相關 API 元素

unescape

()函數 
public function unescape(str:String):String

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0, Flash Player 9, Flash Lite 4

將參數 str 評估為字串、將 URL 編碼格式的字串解碼 (將所有十六進位序列轉換成 ASCII 字元),然後傳回字串。

參數

str:String — 字串,包含要跳脫的十六進位序列。

傳回值
String — 從 URL 編碼格式之參數解碼的字串。

Vector

()函數 
public function Vector(sourceArray:Object):Vector.<T>

語言版本: ActionScript 3.0
執行階段版本: Flash Player 10, AIR 1.5, Flash Lite 4

建立新的 Vector 實體,其中的元素都是指定之資料類型的實體。呼叫這個函數時,您可以使用類型參數來指定結果 Vector 之元素的資料類型 (Vector 的「基底類型」)。這個函數使用的語法與宣告 Vector 實體或呼叫 new Vector.<T>() 建構函式時所使用的語法相同:

var v:Vector.<String> = Vector.<String>(["Hello", "World"]);

sourceArray 引數之元素中的值會填入結果 Vector。如果 sourceArray 引數已經是 Vector.<T> 實體 (其中 T 為基底類型),此函數會傳回該 Vector。否則就會將 sourceArray Array 或 Vector 的元素填入結果 Vector。

在這兩種情況下,sourceArray 引數之所有元素的資料類型都必須符合函數呼叫中指定的基底類型 T

如果 sourceArray 引數有 length 0,此函數會傳回空白 Vector。

如果 Vector 當做 sourceArray 引數傳遞而且其基底類型不是 T,或者如果傳遞 Array 而且其元素並不全都是資料類型 T 的實體,則會嘗試將值轉換為基底類型。如果值可以自動轉換,結果 Vector 會包含轉換後的值。如果無法進行轉換,則會發生錯誤。

同樣地,如果 sourceArray 引數中的元素是基底類型 T 之子類別的實體,呼叫會成功而且元素會加入至結果 Vector。即使 sourceArray 引數是基底類型為 T 之子類別的 Vector,這個做法也會成功。事實上,這是將基底類型 T 的 Vector 轉換為基底類型為 T 之父類別的 Vector 的唯一方式。

例如,下列程式碼會在嚴謹模式下產生編譯錯誤或在執行階段產生 TypeError,因為它嘗試將 Vector.<Sprite> 指定給 Vector.<DisplayObject> 變數 (Sprite 是 DisplayObject 的子類別):

     var v1:Vector.<Sprite> = new Vector.<Sprite>();
     v1[0] = new Sprite();
     var v2:Vector.<DisplayObject> = v1;
     

下列替代版本的程式碼會將 Vector.<Sprite> 實體的元素成功複製到 Vector.<DisplayObject> 實體:

     var v1:Vector.<Sprite> = new Vector.<Sprite>();
     v1[0] = new Sprite();
     var v2:Vector.<DisplayObject> = Vector.<DisplayObject>(v1);
     

參數

sourceArray:Object — Array 或 Vector 實體,其元素會變成結果 Vector 的元素。如果引數是其相關資料類型與指定的資料類型相同的 Vector 實體,則會傳回該引數做為函數結果。

傳回值
Vector.<T> — 已填入 sourceArray 陣列之元素的 Vector 實體。

擲回值
TypeError — 如果 sourceArray 引數包含的元素無法轉換為指定的資料類型。

相關 API 元素

XML

()函數 
public function XML(expression:Object):XML

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0, Flash Player 9, Flash Lite 4

會將物件轉換成 XML 物件。

下表說明各種輸入類型的傳回值。

參數類型傳回值
Boolean值會先轉換成字串,然後再轉換成 XML 物件。
Null發生執行階段錯誤 (TypeError 例外)。
Number值會先轉換成字串,然後再轉換成 XML 物件。
Object只有當值為 String、Number 或 Boolean 值時,才會轉換成 XML;否則會發生執行階段錯誤 (TypeError 例外)。
字串值會轉換成 XML。
Undefined發生執行階段錯誤 (TypeError 例外)。
XML輸入的值會保持不變並傳回。
XMLList只有當 XMLList 物件僅包含一個 XML 類型的屬性時,才會傳回 XML 物件;否則會發生執行階段錯誤 (TypeError 例外)。

參數

expression:Object — 要轉換成 XML 的物件。

傳回值
XML — 含有轉換物件所包含之值的 XML 物件。

相關 API 元素

XMLList

()函數 
public function XMLList(expression:Object):XMLList

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0, Flash Player 9, Flash Lite 4

物件會轉換成 XMLList 物件。

下表說明各種輸入類型的傳回值。

參數類型傳回值
Boolean值會先轉換成字串,然後再轉換成 XMLList 物件。
Null發生執行階段錯誤 (TypeError 例外)。
Number值會先轉換成字串,然後再轉換成 XMLList 物件。
Object只有當值為 String、Number 或 Boolean 值時,才會轉換成 XMLList;否則會發生執行階段錯誤 (TypeError 例外)。
字串值會轉換成 XMLList 物件。
Undefined發生執行階段錯誤 (TypeError 例外)。
XML值會轉換成 XMLList 物件。
XMLList輸入的值會保持不變並傳回。

參數

expression:Object — 要轉換成 XMLList 物件的物件。

傳回值
XMLList — 含有轉換物件所包含之值的 XMLList 物件。

相關 API 元素

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

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