animatecolorproperty.as
来自「QS我也没用过」· AS 代码 · 共 40 行
AS
40 行
package qs.effects
{
import mx.effects.TweenEffect;
import mx.effects.EffectInstance;
import qs.effects.effectClasses.AnimateColorPropertyInstance;
public class AnimateColorProperty extends TweenEffect
{
public function AnimateColorProperty (target:Object = null)
{
super(target);
instanceClass = AnimateColorPropertyInstance;
}
public var isStyle:Boolean = false;
public var toValue:Number;
public var property:String;
public var fromValue:Number;
override public function getAffectedProperties():Array /* of String */
{
return [ property ];
}
override protected function initInstance(instance:EffectInstance):void
{
super.initInstance(instance);
var animatePropertyInstance:AnimateColorPropertyInstance =
AnimateColorPropertyInstance(instance);
animatePropertyInstance.fromValue = fromValue;
animatePropertyInstance.isStyle = isStyle;
animatePropertyInstance.toValue = toValue;
animatePropertyInstance.property = property;
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?