topical media & game development
professional-flex-code-15-CustomTweenEffect.ax
professional-flex-code-15-CustomTweenEffect.ax
[swf]
flex
package
{
import mx.effects.TweenEffect;
import mx.effects.EffectInstance;
public class @ax-professional-flex-code-15-CustomTweenEffect extends TweenEffect
{
// Define xFrom and xTo parameters
public var xFrom:Number;
public var xTo:Number;
public function @ax-professional-flex-code-15-CustomTweenEffect(targetObj:Object = null) {
super(targetObj);
instanceClass= @fileInstance;
}
// override getAffectedProperties() and
// pass the properties effected
override public function getAffectedProperties():Array {
return ["x"];
}
// (AE) Override initInstance()
// override protected function initInstance(inst:EffectInstance):void {
// super.initInstance(inst);
// CustomTweenEffectInstance(inst).xFrom = xFrom;
// CustomTweenEffectInstance(inst).xTo = xTo;
// }
}
}
(C) Æliens
04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.