mx.effects.effectClasses
public class AnimatePropertyInstance
继承AnimatePropertyInstance Inheritance TweenEffectInstance Inheritance EffectInstance Inheritance EventDispatcher Inheritance Object

AnimatePropertyInstance 类用于实现 AnimateProperty 效果的实例类。Flex 在播放 AnimateProperty 效果时会自动创建此类的实例;您无需自己创建。

属于 TweenEffect 类的子类的所有效果类均支持下列事件:

向这两个事件的事件侦听器传递的对象是 TweenEvent 类型的。TweenEvent 类用于定义 value 属性,该属性中包含由效果计算的补间值。对于 AnimateProperty 效果,TweenEvent.value 属性中包含一个介于 AnimateProperty.fromValueAnimateProperty.toValue 属性的值之间的 Number,此值将用作由 AnimateProperty.property 指定的目标属性。

另请参见

mx.effects.AnimateProperty
mx.events.TweenEvent


公共属性
 属性定义方
 InheritedclassName : String
[只读 (read-only)] 效果类的名称,如“FadeInstance”。
EffectInstance
 Inheritedconstructor : Object
对类对象或给定对象实例的构造函数的引用。
Object
 Inheritedduration : Number
效果的持续时间(以毫秒为单位)。
EffectInstance
 InheritedeasingFunction : Function
动画的缓动函数。
TweenEffectInstance
 Inheritedeffect : IEffect
创建此 IEffectInstance 对象的 IEffect 对象。
EffectInstance
 InheritedeffectTargetHost : IEffectTargetHost
一个属性,您可以通过设置此属性访问数据效果基于列表的目标控件。
EffectInstance
  fromValue : Number
用于设置效果的属性的起始值。
AnimatePropertyInstance
 InheritedhideFocusRing : Boolean
确定在开始播放效果时,效果是否应隐藏对焦环。
EffectInstance
  isStyle : Boolean = false
如果为 true,则属性特性是一个样式,您可以使用 setStyle() 方法对其进行设置。
AnimatePropertyInstance
 InheritedplayheadTime : Number
[只读 (read-only)] 效果的当前位置(以毫秒为单位)。
TweenEffectInstance
  property : String
目标上要设置动画效果的属性的名称。
AnimatePropertyInstance
 InheritedpropertyChanges : PropertyChanges
指定包含一组属性的初始值和结束值的 PropertyChanges 对象,这些属性与效果的目标相关。
EffectInstance
 Inheritedprototype : Object
[静态] 对类或函数对象的原型对象的引用。
Object
 InheritedrepeatCount : int
效果的重复次数。
EffectInstance
 InheritedrepeatDelay : int
重复播放效果前需要等待的时间(以毫秒为单位)。
EffectInstance
  roundValue : Boolean = false
如果为 true,则会将插补的补间值舍入到最接近的整数。
AnimatePropertyInstance
 InheritedstartDelay : int
开始播放效果前需要等待的时间(以毫秒为单位)。
EffectInstance
 InheritedsuspendBackgroundProcessing : Boolean
如果为 true,则在播放效果时阻止所有背景处理。
EffectInstance
 Inheritedtarget : Object
要应用此效果的 UIComponent 对象。
EffectInstance
  toValue : Number
该效果的结束值。
AnimatePropertyInstance
 InheritedtriggerEvent : Event
触发播放效果的事件(如果有)。
EffectInstance
 Inheritedtween : Tween
用于确定动画的 Tween 对象。
TweenEffectInstance
公共方法
 方法定义方
  
构造函数。
AnimatePropertyInstance
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
使用 EventDispatcher 对象注册事件侦听器对象,以使侦听器能够接收事件通知。
EventDispatcher
 Inherited
将事件调度到事件流中。
EventDispatcher
 Inherited
中断当前播放的效果,并立即跳至该效果的结尾。
TweenEffectInstance
 Inherited
在完成效果播放时由 end() 方法调用。
EffectInstance
 Inherited
每次完成重复效果的迭代播放后调用。
EffectInstance
 Inherited
检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。
EventDispatcher
 Inherited
指示对象是否已经定义了指定的属性。
Object
 Inherited
如果由 EffectManager 触发效果,则会调用此方法。
EffectInstance
 Inherited
指示 Object 类的实例是否在指定为参数的对象的原型链中。
Object
 Inherited
当效果应最后一次更新目标时调用的回调方法。
TweenEffectInstance
 Inherited
当效果应更新目标时调用的回调方法。
TweenEffectInstance
 Inherited
暂停效果,直到调用 resume() 方法。
EffectInstance
 Inherited
在目标上播放效果实例。
EffectInstance
 Inherited
指示指定的属性是否存在、是否可枚举。
Object
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
从 EventDispatcher 对象中删除侦听器。
EventDispatcher
 Inherited
在效果由 pause() 方法暂停后继续播放效果。
EffectInstance
 Inherited
从效果的当前位置开始反向播放效果。
EffectInstance
 Inherited
seek(playheadTime:Number):void
将效果前移到指定位置。
TweenEffectInstance
 Inherited
设置循环操作动态属性的可用性。
Object
 Inherited
经过 startDelay 所占用的这段时间后,在目标上播放效果实例。
EffectInstance
 Inherited
停止播放效果,使目标保持当前状态。
EffectInstance
 Inherited
返回指定对象的字符串表示形式。
Object
 Inherited
返回指定对象的原始值。
Object
 Inherited
检查是否用此 EventDispatcher 对象或其任何始祖为指定事件类型注册了事件侦听器。
EventDispatcher
受保护的方法
 方法定义方
 Inherited
createTween(listener:Object, startValue:Object, endValue:Object, duration:Number = -1, minFps:Number = -1):Tween
创建一个 Tween 实例,为其分配开始值、结束值和持续时间值。
TweenEffectInstance
事件
 事件 摘要 定义方
 Inherited[广播事件] Flash Player 或 AIR 应用程序获得操作系统焦点并变为活动状态时将调度此事件。EventDispatcher
 Inherited[广播事件] Flash Player 或 AIR 应用程序失去操作系统焦点并变为非活动状态时将调度此事件。EventDispatcher
属性详细信息
fromValue属性
public var fromValue:Number

用于设置效果的属性的起始值。默认值是目标的当前属性值。

isStyle属性 
public var isStyle:Boolean = false

如果为 true,则属性特性是一个样式,您可以使用 setStyle() 方法对其进行设置。

默认值为 false.

property属性 
public var property:String

目标上要设置动画效果的属性的名称。此属性是必需的。

roundValue属性 
public var roundValue:Boolean = false

如果为 true,则会将插补的补间值舍入到最接近的整数。如果您设置动画的属性是 int 或 uint 类型,则此属性会很有用。

默认值为 false.

toValue属性 
public var toValue:Number

该效果的结束值。默认值是目标的当前属性值。

构造函数详细信息
AnimatePropertyInstance()构造函数
public function AnimatePropertyInstance(target:Object)

构造函数。

参数
target:Object — 要使用此效果为其设置动画的 Object。