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

ViewTransitionBase  - AS3 Flex

x

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

语言元素

全局常量
全局函数
运算符
语句、关键字和指令
特殊类型

附录

新增内容
编译器错误
编译器警告
运行时错误
迁移到 ActionScript 3
支持的字符集
仅适用于 MXML 的标签
Motion XML 元素
Timed Text 标记
不推荐使用的元素的列表
AccessibilityImplementation 常量
如何使用 ActionScript 示例
法律声明
spark.transitions
public class ViewTransitionBase
继承ViewTransitionBase Inheritance EventDispatcher Inheritance Object
子类 CrossFadeViewTransition, FlipViewTransition, SlideViewTransition, ZoomViewTransition

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: AIR 2.5

ViewTransitionBase 类是所有视图过渡的基类。并不是有意将其用于过渡的。除了提供公共便利以及视图过渡所使用的 helper 方法之外,该类同样提供了默认的操作栏过渡序列。

初始化视图过渡时,所属的视图导航器将 startViewendView 属性设置为过渡设置动画的视图。navigator 属性设置为视图导航器。

过渡的生命周期如下所示:

  • 过渡以 captureStartValues() 方法开始。调用此方法时,导航器当前处于开始状态。此时,过渡应捕获所需的所有开始值或位图。
  • 针对暂挂视图执行了验证通过,且调用了 captureEndValues() 方法。此时,过渡从暂挂视图中捕获所有属性或位图表示。
  • 之后会调用 prepareForPlay() 方法,来允许过渡执行进一步的准备(例如准备 Spark 效果序列,或在显示列表中定位瞬态元素)。
  • 在最终验证通过(如果需要)后,导航器将调用 play() 方法来执行实际的过渡。
  • 在任一动画开始前,将先调度 start 事件。
  • 过渡完成时,会调度 end 事件。

注意:在 ActionScript 中创建并配置视图过渡。您无法在 MXML 中创建这些视图过渡。



公共属性
 属性由以下参数定义
 Inheritedconstructor : Object
对类对象或给定对象实例的构造函数的引用。
Object
      duration : Number
过渡的持续时间(以毫秒为单位)。
ViewTransitionBase
      easer : IEaser
此过渡的缓动行为。
ViewTransitionBase
      endView : View
导航器正在过渡到的视图,由所属的 ViewNavigator 对象设置。
ViewTransitionBase
      navigator : ViewNavigator
对所属的 ViewNavigator 实例的引用,由所属的 ViewNavigator 设置。
ViewTransitionBase
      startView : View
视图导航器的当前活动视图,由所属的视图导航器设置。
ViewTransitionBase
      suspendBackgroundProcessing : Boolean
设置为 true 时,会在过渡播放前调用 UIComponent.suspendBackgroundProcessing() 方法。
ViewTransitionBase
      transitionControlsWithContent : Boolean
设置为 true 时,主视图过渡用于对视图导航器进行完整过渡,包含操作栏。
ViewTransitionBase
公共方法
 方法由以下参数定义
  
构造函数。
ViewTransitionBase
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
使用 EventDispatcher 对象注册事件侦听器对象,以使侦听器能够接收事件通知。
EventDispatcher
  
在过渡的准备阶段由 ViewNavigator 调用。
ViewTransitionBase
  
在过渡的准备阶段由 ViewNavigator 调用。
ViewTransitionBase
 Inherited
将事件调度到事件流中。
EventDispatcher
 Inherited
检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。
EventDispatcher
 Inherited
表示对象是否已经定义了指定的属性。
Object
 Inherited
表示 Object 类的实例是否在指定为参数的对象的原型链中。
Object
  
    play():void
在过渡应开始设置动画时由 ViewNavigator 调用。
ViewTransitionBase
  
在过渡的准备阶段由 ViewNavigator 调用。
ViewTransitionBase
 Inherited
表示指定的属性是否存在、是否可枚举。
Object
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
从 EventDispatcher 对象中删除侦听器。
EventDispatcher
 Inherited
设置循环操作动态属性的可用性。
Object
 Inherited
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。
Object
 Inherited
返回指定对象的字符串表示形式。
Object
 Inherited
返回指定对象的原始值。
Object
 Inherited
检查是否用此 EventDispatcher 对象或其任何祖代为指定事件类型注册了事件侦听器。
EventDispatcher
受保护的方法
 方法由以下参数定义
  
确定 Flex 是否可以针对视图的操作栏或选项卡栏内容独立执行过渡。
ViewTransitionBase
  
    cleanUp():void
过渡完成后调用。
ViewTransitionBase
  
由默认的 prepareForPlay() 实现调用,该方法用于创建在过渡开始时针对操作栏进行播放的 Spark 效果。
ViewTransitionBase
  
由默认的 prepareForPlay() 实现调用,该方法用于创建用来过渡整个导航器(包括控件栏内容)而进行播放的 Spark 效果。
ViewTransitionBase
  
由默认的 prepareForPlay() 实现调用,该方法用于创建在过渡开始时针对选项卡栏进行播放的 Spark 效果。
ViewTransitionBase
  
由默认的 prepareForPlay() 实现调用,该方法用于创建在过渡开始时针对当前和下一视图进行播放的 Spark 效果。
ViewTransitionBase
  
    getSnapshot(target:UIComponent, padding:int = 4, globalPosition:Point = null):BitmapImage
用于呈示准备过渡时屏幕上的元素的快照。
ViewTransitionBase
  
由过渡调用以指示过渡已完成。
ViewTransitionBase
事件
 事件 摘要 由以下参数定义
 Inherited[广播事件] Flash Player 或 AIR 应用程序获得操作系统焦点并变为活动状态时将调度此事件。EventDispatcher
 Inherited[广播事件] Flash Player 或 AIR 应用程序失去操作系统焦点并变为非活动状态时将调度此事件。EventDispatcher
  在过渡完成时调度。ViewTransitionBase
  在开始过渡时调度。ViewTransitionBase
属性详细信息
    

duration

属性
duration:Number

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: AIR 2.5

过渡的持续时间(以毫秒为单位)。默认值可能会有所不同,具体取决于相应的过渡,但在 ViewTransitionBase 中定义为 250 毫秒。



实现
    public function get duration():Number
    public function set duration(value:Number):void
    

easer

属性 
easer:IEaser

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: AIR 2.5

此过渡的缓动行为。IEaser 对象通常传播到管理实际过渡动画的 IEffect 实例中。

默认值为 Sine(.5);。



实现
    public function get easer():IEaser
    public function set easer(value:IEaser):void

相关 API 元素

    

endView

属性 
endView:View

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: AIR 2.5

导航器正在过渡到的视图,由所属的 ViewNavigator 对象设置。此属性可能为 null。

默认值为 null。



实现
    public function get endView():View
    public function set endView(value:View):void
    

navigator

属性 
navigator:ViewNavigator

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: AIR 2.5

对所属的 ViewNavigator 实例的引用,由所属的 ViewNavigator 设置。

默认值为 null。



实现
    public function get navigator():ViewNavigator
    public function set navigator(value:ViewNavigator):void
    

startView

属性 
startView:View

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: AIR 2.5

视图导航器的当前活动视图,由所属的视图导航器设置。此属性可能为 null。



实现
    public function get startView():View
    public function set startView(value:View):void
    

suspendBackgroundProcessing

属性 
suspendBackgroundProcessing:Boolean

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: AIR 2.5

设置为 true 时,会在过渡播放前调用 UIComponent.suspendBackgroundProcessing() 方法。这禁用了 Flex 的布局管理器,从而提高了性能。在完成过渡时,布局管理器功能通过调用 UIComponent.resumeBackgroundProcessing() 方法得到恢复。

默认值为 false。



实现
    public function get suspendBackgroundProcessing():Boolean
    public function set suspendBackgroundProcessing(value:Boolean):void

相关 API 元素

    

transitionControlsWithContent

属性 
transitionControlsWithContent:Boolean

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: AIR 2.5

设置为 true 时,主视图过渡用于对视图导航器进行完整过渡,包含操作栏。不会执行操作栏的特定过渡。因为选项卡栏与整个应用程序相关联,而不是与某一视图关联,所以视图过渡不影响该栏。

请注意,即使设置为 false 时,仍会出现过渡操作栏不可行的情况。例如,操作栏不出现在两个视图之一中时,或如果操作栏更改大小。

默认值为 false。



实现
    public function get transitionControlsWithContent():Boolean
    public function set transitionControlsWithContent(value:Boolean):void
构造函数详细信息
    

ViewTransitionBase

()构造函数
public function ViewTransitionBase()

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: AIR 2.5

构造函数。

方法详细信息

    canTransitionControlBarContent

()方法
protected function canTransitionControlBarContent():Boolean

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: AIR 2.5

确定 Flex 是否可以针对视图的操作栏或选项卡栏内容独立执行过渡。

Flex 在以下情况下无法针对控制栏独立执行过渡:

  • 如果包含的视图导航器是 TabbedViewNavigator 且其选项卡栏的可见性在视图之间发生变化。
  • 如果视图导航器的 overlayControls 属性值在视图之间发生变化。
  • 如果操作栏的大小或可见性在视图之间发生变化。

返回
Boolean — 如果 Flex 确定视图之间的控制栏在某些方面不兼容,则为 false

    captureEndValues

()方法 
public function captureEndValues():void

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: AIR 2.5

在过渡的准备阶段由 ViewNavigator 调用。在新视图已经完全实现并经过验证,而且操作栏与选项卡栏内容能够反应新视图的状态时,将调用该方法。过渡就是在此时从暂挂的视图中可以捕获任意所需的值。此外,反映新视图、选项卡栏或操作栏的状态的任意位图都应根据动画的需要来捕获。

    captureStartValues

()方法 
public function captureStartValues():void

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: AIR 2.5

在过渡的准备阶段由 ViewNavigator 调用。在新视图已经完全实现并经过验证,而且操作栏与选项卡栏内容能够反应新视图的状态时,将调用该方法。过渡可以使用该方法从暂挂的视图中捕获所需的任意值。反映新视图、选项卡栏或操作栏的状态的任意位图都应根据动画的需要来捕获。

    cleanUp

()方法 
protected function cleanUp():void

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: AIR 2.5

过渡完成后调用。该方法用于发布任何由过渡使用的引用和临时构造。

    createActionBarEffect

()方法 
protected function createActionBarEffect():IEffect

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: AIR 2.5

由默认的 prepareForPlay() 实现调用,该方法用于创建在过渡开始时针对操作栏进行播放的 Spark 效果。如果需要自定义的操作栏效果,该方法应由子类重写。默认情况下,该方法返回基本的操作栏效果。

返回
IEffect — 用作操作栏效果的 IEffect 实例。该效果由默认的 play() 方法实现播放。

    createConsolidatedEffect

()方法 
protected function createConsolidatedEffect():IEffect

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: AIR 2.5

由默认的 prepareForPlay() 实现调用,该方法用于创建用来过渡整个导航器(包括控件栏内容)而进行播放的 Spark 效果。该方法应由子类覆盖。默认情况下,该方法将返回 null。

返回
IEffect — 用作视图过渡的 IEffect 实例。该效果由默认的 play() 方法实现播放。

    createTabBarEffect

()方法 
protected function createTabBarEffect():IEffect

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: AIR 2.5

由默认的 prepareForPlay() 实现调用,该方法用于创建在过渡开始时针对选项卡栏进行播放的 Spark 效果。该方法应由子类覆盖。默认情况下,将返回 null。

返回
IEffect — 用作选项卡栏过渡的 IEffect 实例。该效果由默认的 play() 方法实现播放。

    createViewEffect

()方法 
protected function createViewEffect():IEffect

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: AIR 2.5

由默认的 prepareForPlay() 实现调用,该方法用于创建在过渡开始时针对当前和下一视图进行播放的 Spark 效果。该方法应由子类覆盖。默认情况下,该方法将返回 null。

返回
IEffect — 用作视图过渡的 IEffect 实例。该效果由默认的 play() 方法实现播放。

    getSnapshot

()方法 
protected function getSnapshot(target:UIComponent, padding:int = 4, globalPosition:Point = null):BitmapImage

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: AIR 2.5

用于呈示准备过渡时屏幕上的元素的快照。位图以 BitmapImage 对象的形式返回。

BitmapImage 在目标的父代坐标空间中 - 如果链接至相同父代,则它正好重叠目标。移动至其它父代时,请确保调整 BitmapImage 的转换以正确说明坐标空间中的更改。globalPosition 参数的更新值可用于此。

参数

target:UIComponent — 显示要捕获的对象。
 
padding:int (default = 4) — 要在 BitmapImage 对象中包含的对象周围的内边距。
 
globalPosition:Point (default = null) — 非 null 时,将使用 BitmapImage 在全局坐标中的原点更新 globalPosition。移动至其它坐标空间时,此值可用于调整快照位置,使其在屏幕上的全局位置不会改变。

返回
BitmapImage — 代表目标的 BitmapImage 对象。

    play

()方法 
public function play():void

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: AIR 2.5

在过渡应开始设置动画时由 ViewNavigator 调用。此时,过渡应调度 start 事件。

    prepareForPlay

()方法 
public function prepareForPlay():void

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: AIR 2.5

在过渡的准备阶段由 ViewNavigator 调用。该方法给过渡创建和配置基础 IEffect 实例的机会,或者给过渡将任意瞬态元素添加至显示列表的机会。示例瞬态元素包含位图占位符、过渡期间所需的临时容器,以及其它元素。若有需要,最终验证通过发生在 play() 方法调用之前。

如果确定可以启动标准过渡,说明可以从视图中单独过渡控件栏,该方法的默认实现会构造单独的 Parallel 效果,用于包装视图过渡、操作栏过渡和选项卡栏过渡的各个效果序列。该方法使用方法:createActionBarEffect()createTabBarEffect()createViewEffect()

如果将 transitionControlsWithContent 设置为 true,或确定控件栏无法单独过渡,将创建一个单独的效果来对导航器进行完整过渡。在这种情况下,仅调用 createConsolidatedEffect()

    transitionComplete

()方法 
protected function transitionComplete():void

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: AIR 2.5

由过渡调用以指示过渡已完成。该方法调度 end 事件。

事件详细信息
    

transitionEnd

事件
事件对象类型: mx.events.FlexEvent
属性 FlexEvent.type = mx.events.FlexEvent.TRANSITION_START

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: AIR 2.5

在过渡完成时调度。

FlexEvent.TRANSITION_START 常量为 transitionStart 事件定义事件对象的 type 属性的值。

仅当一个或多个相关侦听器附加到调度对象时,才会调度此事件。

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

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

transitionStart

事件  
事件对象类型: mx.events.FlexEvent
属性 FlexEvent.type = mx.events.FlexEvent.TRANSITION_START

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: AIR 2.5

在开始过渡时调度。

FlexEvent.TRANSITION_START 常量为 transitionStart 事件定义事件对象的 type 属性的值。

仅当一个或多个相关侦听器附加到调度对象时,才会调度此事件。

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

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




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

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