用于 Adobe® Flash® Platform 的 ActionScript® 3.0 参考
主页  |  隐藏包列表和类列表 |   |   |  新增内容  |  索引  |  附录  |  为什么显示为英语?
过滤条件: AIR 30.0 和更早版本, Flash Player 30.0 和更早版本, Flash Lite 4
Flex 4.6 和更早版本, Flash Pro CS6 和更早版本
隐藏过滤条件
fl.motion 

AnimatorBase  - 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 的标签
Motion XML 元素
Timed Text 标记
不推荐使用的元素的列表
AccessibilityImplementation 常量
如何使用 ActionScript 示例
法律声明
fl.motion
public class AnimatorBase
继承AnimatorBase Inheritance EventDispatcher Inheritance Object
子类 Animator, Animator3D

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

AnimatorBase 类将补间动画的 XML 说明应用于显示对象。AnimatorBase 类的属性和方法控制动画的播放,Flash Player 会广播事件以便对动画状态的变化做出响应。AnimatorBase 类主要由 Flash CS4 或更高版本中的“将动画复制为 ActionScript”命令所使用。然后,可以使用应用程序编程接口 (API) 编辑 ActionScript,或者制作您自己的自定义动画。AnimatorBase 类不应独立使用。改用其子类:Animator 或 Animator3D。

如果您要在函数中调用 AnimatorBase 类的方法,请在函数外声明 AnimatorBase 实例,以使对象的范围不只限于函数本身。如果在函数内声明实例,作为 Flash Player 例程“垃圾回收”的一部分,Flash Player 会在函数结束时删除 AnimatorBase 实例,目标对象将无法运行动画。

默认 MXML 属性motion

相关 API 元素



公共属性
 属性由以下参数定义
  autoRewind : Boolean = false
将动画设置为完成后重新开始播放。
AnimatorBase
 Inheritedconstructor : Object
对类对象或给定对象实例的构造函数的引用。
Object
  frameEvent : String
Event.ENTER_FRAME 事件创建的事件对象的名称。
AnimatorBase
  initialPosition : Array
[只写] 定义动画的起始位置的坐标数组。
AnimatorBase
  instanceFactoryClass : Class
使用 ActionScript 创建实例时,就是使用此类创建此实例。
AnimatorBase
  isPlaying : Boolean
[只读] 指示动画当前是否正在播放。
AnimatorBase
  motion : MotionBase
包含动画的补间动画属性的对象。
AnimatorBase
  motionArray : Array
包含动画的补间动画属性的对象数组。
AnimatorBase
  orientToPath : Boolean = false
沿运动路径设置显示对象的位置。
AnimatorBase
  placeholderName : String
使用 ActionScript 创建实例时,这就是我们将替换的在舞台上显示的实例。
AnimatorBase
  positionMatrix : Matrix
将整体变形应用于运动路径的 Matrix 对象。
AnimatorBase
  repeatCount : int = 1
动画的重复次数。
AnimatorBase
  sceneName : String
导出的场景的参考(针对 3D 动画),以便将场景加载到父时间轴。
AnimatorBase
  spanEnd : int
[只读] 返回结束目标动画的目标父级的帧。
AnimatorBase
  spanStart : int
[只读] 返回开始目标动画的目标父级的帧。
AnimatorBase
  target : DisplayObject
正呈现动画效果的显示对象。
AnimatorBase
  targetName : String
依父级 DisplayObjectContainer 而定的目标对象的名称。
AnimatorBase
  targetParent : DisplayObjectContainer
将呈现动画效果的目标父级 DisplayObjectContainer,可以与 targetName 配合使用,以便在删除目标对象并在时间轴上将其替换后检索该目标对象。
AnimatorBase
  targetParentButton : SimpleButton
AnimatorBase
  targetState3D : Array
目标对象的初始方向。
AnimatorBase
  time : int
从零开始的整数,指示和控制当前动画中的时间。
AnimatorBase
  transformationPoint : Point
用于旋转或缩放显示对象的参考点。
AnimatorBase
  transformationPointZ : int
用于旋转或缩放显示对象的参考 Z 坐标点。
AnimatorBase
  usingCurrentFrame : Boolean
[只读] 指示是否在进入新帧时检查 currentFrame 属性,以及是将目标的动画与其父级时间轴中的帧同步,还是不管父级的当前帧如何都始终进入。
AnimatorBase
公共方法
 方法由以下参数定义
  
AnimatorBase(xml:XML = null, target:DisplayObject = null)
创建 AnimatorBase 对象,将基于 XML 的补间动画说明应用于显示对象。
AnimatorBase
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
使用 EventDispatcher 对象注册事件侦听器对象,以使侦听器能够接收事件通知。
EventDispatcher
 Inherited
将事件调度到事件流中。
EventDispatcher
  
end(reset:Boolean = false, stopEnterFrame:Boolean = true, pastLastFrame:Boolean = false):void
停止播放动画,Flash Player 会立即转到动画序列中的最后一帧。
AnimatorBase
 Inherited
检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。
EventDispatcher
 Inherited
表示对象是否已经定义了指定的属性。
Object
 Inherited
表示 Object 类的实例是否在指定为参数的对象的原型链中。
Object
  
nextFrame(reset:Boolean = false, stopEnterFrame:Boolean = true):void
使 Flash Player 前进到动画序列中的下一帧。
AnimatorBase
  
暂停动画,直到调用 resume() 方法。
AnimatorBase
  
play(startTime:int = -1, startEnterFrame:Boolean = true):void
开始播放动画。
AnimatorBase
  
processCurrentFrame(parent:MovieClip, anim:AnimatorBase, startEnterFrame:Boolean, playOnly:Boolean = false):void
[静态]
AnimatorBase
 Inherited
表示指定的属性是否存在、是否可枚举。
Object
  
registerParentFrameHandler(parent:MovieClip, anim:AnimatorBase, spanStart:int, repeatCount:int = 0, useCurrentFrame:Boolean = false):void
[静态] 注册给定 MovieClip 以及该 MovieClip 子级的 AnimatorBase 实例。
AnimatorBase
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
从 EventDispatcher 对象中删除侦听器。
EventDispatcher
  
在动画由 pause() 方法暂停后继续播放动画。
AnimatorBase
  
将 Flash Player 设置到动画的第一帧。
AnimatorBase
 Inherited
设置循环操作动态属性的可用性。
Object
  
启动帧事件。
AnimatorBase
  
停止播放动画,Flash Player 将返回到动画序列中的第一帧。
AnimatorBase
 Inherited
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。
Object
 Inherited
返回指定对象的字符串表示形式。
Object
  
useCurrentFrame(enable:Boolean, spanStart:int):void
每次进入新帧时设置 currentFrame 属性,并设置目标动画是否与其父级 MovieClips 的时间轴中的帧同步。
AnimatorBase
 Inherited
返回指定对象的原始值。
Object
 Inherited
检查是否用此 EventDispatcher 对象或其任何祖代为指定事件类型注册了事件侦听器。
EventDispatcher
事件
 事件 摘要 由以下参数定义
 Inherited[广播事件] Flash Player 或 AIR 应用程序获得操作系统焦点并变为活动状态时将调度此事件。EventDispatcher
 Inherited[广播事件] Flash Player 或 AIR 应用程序失去操作系统焦点并变为非活动状态时将调度此事件。EventDispatcher
  在动画结束播放(无论是播放到末尾还是由于调用 stop() 或 end() 方法而中断动画)时调度。AnimatorBase
  当动画开始播放时调度。AnimatorBase
  当动画已更改并且屏幕已更新时调度。AnimatorBase
  当 Animator 的 time 值已更改,但是屏幕尚未更新时(即 motionUpdate 事件)调度。AnimatorBase
属性详细信息

autoRewind

属性
public var autoRewind:Boolean = false

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

将动画设置为完成后重新开始播放。

frameEvent

属性 
frameEvent:String

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

Event.ENTER_FRAME 事件创建的事件对象的名称。



实现
    public function get frameEvent():String
    public function set frameEvent(value:String):void

initialPosition

属性 
initialPosition:Array  [只写]

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

定义动画的起始位置的坐标数组。



实现
    public function set initialPosition(value:Array):void

instanceFactoryClass

属性 
instanceFactoryClass:Class

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

使用 ActionScript 创建实例时,就是使用此类创建此实例。



实现
    public function get instanceFactoryClass():Class
    public function set instanceFactoryClass(value:Class):void

isPlaying

属性 
isPlaying:Boolean  [只读]

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

指示动画当前是否正在播放。



实现
    public function get isPlaying():Boolean

motion

属性 
motion:MotionBase

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

包含动画的补间动画属性的对象。无法将 motion 和 motionArray 同时设置为 non-null 值;如果将 motionArray 设置为 non-null 值,motion 将自动设置为 null,反之亦然。



实现
    public function get motion():MotionBase
    public function set motion(value:MotionBase):void

motionArray

属性 
motionArray:Array

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

包含动画的补间动画属性的对象数组。无法将 motion 和 motionArray 同时设置为 non-null 值;如果将 motionArray 设置为 non-null 值,motion 将自动设置为 null,反之亦然。只有 usingCurrentFrame 为 true 时,使用 motionArray 的动画才能正常工作。如果支持 3D,数组应具有包含 spanStart 属性集和 initialPosition 属性集的 MotionBase 实例。数组实例应按从最低到最高的 spanStart 顺序放置到数组中。此外,如果已设置 motionArray,则 time 属性不是相对于一个运动实例的属性,对目标父项来说,它是绝对属性,仍从零开始编制索引并只限于动画范围内(因此当 currentFrame - 1 大于 spanStart 且小于 spanEnd 时,它应为 parent.currentFrame - 1)。将不接受空数组;传递空数组等效于设置为 null。motionArray 不应包含 null 条目,而且 spanStart 和持续条目中不应该有任何间隙(例如,如果第一个条目的 spanStart == 5 且持续时间 == 3,则第二个条目要求使 spanStart == 8)。



实现
    public function get motionArray():Array
    public function set motionArray(value:Array):void

orientToPath

属性 
public var orientToPath:Boolean = false

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

沿运动路径设置显示对象的位置。 如果设置为 true,则显示对象的基线会调整到运动路径的方向;否则,注册点会调整到运动路径的方向。

placeholderName

属性 
placeholderName:String

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

使用 ActionScript 创建实例时,这就是我们将替换的在舞台上显示的实例。



实现
    public function get placeholderName():String
    public function set placeholderName(value:String):void

positionMatrix

属性 
public var positionMatrix:Matrix

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

将整体变形应用于运动路径的 Matrix 对象。 此矩阵允许在不更改显示对象外观的情况下移动、缩放、倾斜或旋转路径。

repeatCount

属性 
public var repeatCount:int = 1

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

动画的重复次数。可能值为任何大于等于 0 的整数。 值为 1 表示播放一次动画。 值为 0 表示无限制地循环播放动画,直到被明确停止(例如,通过调用 end() 方法)。

默认值为 1。

相关 API 元素

sceneName

属性 
sceneName:String

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

导出的场景的参考(针对 3D 动画),以便将场景加载到父时间轴。



实现
    public function get sceneName():String
    public function set sceneName(value:String):void

spanEnd

属性 
spanEnd:int  [只读]

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

返回结束目标动画的目标父级的帧。此值是使用 spanStart 和动画的 duration 属性确定的。



实现
    public function get spanEnd():int

spanStart

属性 
spanStart:int  [只读]

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

返回开始目标动画的目标父级的帧。



实现
    public function get spanStart():int

target

属性 
target:DisplayObject

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

正呈现动画效果的显示对象。可以使用 flash.display.DisplayObject 的任何子类,如 MovieClipSpriteBitmap



实现
    public function get target():DisplayObject
    public function set target(value:DisplayObject):void

相关 API 元素

targetName

属性 
targetName:String

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

依父级 DisplayObjectContainer 而定的目标对象的名称。可以与 targetParent 配合使用,以便在删除目标对象并在时间轴上将其替换后检索该目标对象。



实现
    public function get targetName():String
    public function set targetName(value:String):void

targetParent

属性 
targetParent:DisplayObjectContainer

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

将呈现动画效果的目标父级 DisplayObjectContainer,可以与 targetName 配合使用,以便在删除目标对象并在时间轴上将其替换后检索该目标对象。



实现
    public function get targetParent():DisplayObjectContainer
    public function set targetParent(value:DisplayObjectContainer):void

targetParentButton

属性 
targetParentButton:SimpleButton



实现
    public function get targetParentButton():SimpleButton
    public function set targetParentButton(value:SimpleButton):void

targetState3D

属性 
targetState3D:Array

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

目标对象的初始方向。所有的 3D 旋转对于动画数据都是绝对的。如果将具有不同 3D 起始方向的另一对象确定为目标,则此属性将首先重置为此目标状态。



实现
    public function get targetState3D():Array
    public function set targetState3D(value:Array):void

time

属性 
time:int

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

从零开始的整数,指示和控制当前动画中的时间。在动画的第一帧中,time 值为 0。如果动画持续 10 帧,则最后一帧的 time 值为 9

如果将 motionArray 设置为 non-null,则 time 不是从零开始的相对索引,它对目标父项来说是绝对属性,只限于动画范围内并仍从零开始编制索引(因此当 currentFrame - 1 大于此范围中的 spanStart 且小于spanEndwithin 时,它应为 parent.currentFrame - 1)。



实现
    public function get time():int
    public function set time(value:int):void

transformationPoint

属性 
public var transformationPoint:Point

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

用于旋转或缩放显示对象的参考点。 对于 2D 动画,变形点是相对于显示对象的边框的。变形点的坐标必须缩放到 1 x 1 像素的框中,其中 (1, 1) 代表对象的右下角,(0, 0) 代表对象的左上角。对于 3D 动画(当 AnimatorBase 实例为 Animator3D 时),transformationPoint 的 x 和 y 以及 transformationPointZ 在目标父级坐标空间中是绝对值。

transformationPointZ

属性 
public var transformationPointZ:int

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

用于旋转或缩放显示对象的参考 Z 坐标点。transformationPointZ 属性(或 setter)在 AnimatorFactory3D 子类中会被覆盖。在 3D 中,点数并不像在 2D 中那样表示百分比,而是指原始对象变形点的绝对值。

usingCurrentFrame

属性 
usingCurrentFrame:Boolean  [只读]

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

指示是否在进入新帧时检查 currentFrame 属性,以及是将目标的动画与其父级时间轴中的帧同步,还是不管父级的当前帧如何都始终进入。



实现
    public function get usingCurrentFrame():Boolean
构造函数详细信息

AnimatorBase

()构造函数
public function AnimatorBase(xml:XML = null, target:DisplayObject = null)

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

创建 AnimatorBase 对象,将基于 XML 的补间动画说明应用于显示对象。如果 XML 为 null(此为默认值),则可以向 Motion 实例直接提供 XML,也可以在 Motion 实例中设置属性值数组。

参数
xml:XML (default = null) — 包含基于 XML 的补间动画说明的 E4X 对象。
 
target:DisplayObject (default = null) — 使用补间动画的显示对象。

相关 API 元素

方法详细信息

end

()方法
public function end(reset:Boolean = false, stopEnterFrame:Boolean = true, pastLastFrame:Boolean = false):void

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

停止播放动画,Flash Player 会立即转到动画序列中的最后一帧。 如果 autoRewind 属性设置为 true,则 Flash Player 会转到动画序列中的第一帧。

参数

reset:Boolean (default = false) — 指示 _lastRenderedTime_target 是否应重置为其原始值。只有提供了 targetParenttargetName,才应重置 _target
 
stopEnterFrame:Boolean (default = true)
 
pastLastFrame:Boolean (default = false)

相关 API 元素

nextFrame

()方法 
public function nextFrame(reset:Boolean = false, stopEnterFrame:Boolean = true):void

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

使 Flash Player 前进到动画序列中的下一帧。

参数

reset:Boolean (default = false)
 
stopEnterFrame:Boolean (default = true)

pause

()方法 
public function pause():void

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

暂停动画,直到调用 resume() 方法。

相关 API 元素

play

()方法 
public function play(startTime:int = -1, startEnterFrame:Boolean = true):void

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

开始播放动画。 在您调用 play() 方法之前先调用 end(),以确保在您开始新的动画实例之前以前的所有动画实例都已结束。

参数

startTime:int (default = -1) — 指示要使用的替代起始时间(相对帧)。如果未指定,则使用默认起始时间 0。如果将 motionArray 设置为 non-null,则 startTime 就会像 time 属性一样不是相对而是绝对属性了。
 
startEnterFrame:Boolean (default = true) — 指示是否需要向父级添加事件侦听器来捕获帧事件。如果父级已通过 registerParentFrameHandler() 向其 AnimatorBase 实例注册,则此值可以为 false

相关 API 元素

processCurrentFrame

()方法 
public static function processCurrentFrame(parent:MovieClip, anim:AnimatorBase, startEnterFrame:Boolean, playOnly:Boolean = false):void

参数

parent:MovieClip
 
anim:AnimatorBase
 
startEnterFrame:Boolean
 
playOnly:Boolean (default = false)

registerParentFrameHandler

()方法 
public static function registerParentFrameHandler(parent:MovieClip, anim:AnimatorBase, spanStart:int, repeatCount:int = 0, useCurrentFrame:Boolean = false):void

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

注册给定的 MovieClip 以及该 MovieClip 子级的 AnimatorBase 实例。父级 MovieClip 的 FRAME_CONSTRUCTED 事件已进行处理,其 currentFrame 和 AnimatorBase 的 spanStart 属性用于确定应播放的动画的当前相对帧。

调用此函数会自动将 AnimatorBase 的 useCurrentFrame 属性设置为 true,并使用同名参数设置其 spanStart 属性。

参数

parent:MovieClip — AnimatorBase 实例的父级 MovieClip。
 
anim:AnimatorBase — 与父级 MovieClip 关联的 AnimatorBase 实例。
 
spanStart:int — 依父级 MovieClip 时间轴而定的动画起始帧。
 
repeatCount:int (default = 0) — 动画应播放的次数。默认值为 0,它表示动画将无限循环。
 
useCurrentFrame:Boolean (default = false) — 指示是否每次进入新帧时都检查 useCurrentFrame 属性。

resume

()方法 
public function resume():void

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

在动画由 pause() 方法暂停后继续播放动画。

相关 API 元素

rewind

()方法 
public function rewind():void

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

将 Flash Player 设置到动画的第一帧。 如果动画正在播放,则它会从第一帧开始继续播放。如果动画已停止,则它会在第一帧位置保持停止状态。

startFrameEvents

()方法 
public function startFrameEvents():void

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

启动帧事件。

stop

()方法 
public function stop():void

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

停止播放动画,Flash Player 将返回到动画序列中的第一帧。

相关 API 元素

useCurrentFrame

()方法 
public function useCurrentFrame(enable:Boolean, spanStart:int):void

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

每次进入新帧时设置 currentFrame 属性,并设置目标动画是否与其父级 MovieClips 的时间轴中的帧同步。spanStart 是依父级时间轴而定的动画起始帧。如果 enabletrue,则动画范围内任何给定“进入帧”事件的 time 属性都将设置为相对于 spanStart 帧的帧数。

例如,如果 4 帧动画以第 5 帧为起始帧 (spanStart=5),并且第 5 帧上具有一个针对第 8 帧执行 gotoAndPlay 的脚本,则在进入第 8 帧时,time 属性会设置为 3,从而跳过 time = 1time = 2

参数

enable:Boolean — 用于确定是否检查 currentFrame 属性的 true 或 false 值。
 
spanStart:int — 依父级 MovieClip 时间轴而定的动画起始帧。

事件详细信息

motionEnd

事件
事件对象类型: fl.motion.MotionEvent
属性 MotionEvent.type = fl.motion.MotionEvent.MOTION_END

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

在动画结束播放(无论是播放到末尾还是由于调用 stop()end() 方法而中断动画)时调度。

指示通过显式调用 Animator.stop()Animator.end(),或者到达 Motion 实例的末尾,动画已结束。

事件对象的属性有下列值:

属性
bubblesfalse
cancelablefalse
currentTarget用于定义处理该事件的事件侦听器的对象。例如,如果您使用 myButton.addEventListener() 注册某个事件侦听器,则 myButtoncurrentTarget 的值。
target调度该事件的对象;它不一定是侦听该事件的对象。使用 currentTarget 属性始终可以访问侦听该事件的对象。

motionStart

事件  
事件对象类型: fl.motion.MotionEvent
属性 MotionEvent.type = fl.motion.MotionEvent.MOTION_START

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

当动画开始播放时调度。

指示 Motion 实例已经开始播放。

事件对象的属性有下列值:

属性
bubblesfalse
cancelablefalse
currentTarget用于定义处理该事件的事件侦听器的对象。例如,如果您使用 myButton.addEventListener() 注册某个事件侦听器,则 myButtoncurrentTarget 的值。
target调度该事件的对象;它不一定是侦听该事件的对象。使用 currentTarget 属性始终可以访问侦听该事件的对象。

motionUpdate

事件  
事件对象类型: fl.motion.MotionEvent
属性 MotionEvent.type = fl.motion.MotionEvent.MOTION_UPDATE

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

当动画已更改并且屏幕已更新时调度。

指示 Motion 实例已更改并且屏幕已更新。

事件对象的属性有下列值:

属性
bubblesfalse
cancelablefalse
currentTarget用于定义处理该事件的事件侦听器的对象。例如,如果您使用 myButton.addEventListener() 注册某个事件侦听器,则 myButtoncurrentTarget 的值。
target调度该事件的对象;它不一定是侦听该事件的对象。使用 currentTarget 属性始终可以访问侦听该事件的对象。

timeChange

事件  
事件对象类型: fl.motion.MotionEvent
属性 MotionEvent.type = fl.motion.MotionEvent.TIME_CHANGE

语言版本: ActionScript 3.0
产品版本: Flash CS4
运行时版本: Flash Player 9.0.28.0, AIR 1.0

当 Animator 的 time 值已更改,但是屏幕尚未更新时(即 motionUpdate 事件)调度。

指示 Animator 实例的 time 值已更改,但是屏幕尚未更新(Flash Player 尚未调度 motionUpdate 事件)。

事件对象的属性有下列值:

属性
bubblesfalse
cancelablefalse
currentTarget用于定义处理该事件的事件侦听器的对象。例如,如果您使用 myButton.addEventListener() 注册某个事件侦听器,则 myButtoncurrentTarget 的值。
target调度该事件的对象;它不一定是侦听该事件的对象。使用 currentTarget 属性始终可以访问侦听该事件的对象。




[ X ]为什么显示为英语?
《ActionScript 3.0 参考》中的内容以英语显示

《ActionScript 3.0 参考》中的部分内容未翻译成所有语言。当某个语言元素未翻译时,将显示为英语。例如,ga.controls.HelpBox 类未翻译成任何语言。因此在简体中文版的参考中,ga.controls.HelpBox 类显示为英语。