@namespace s "library://ns.adobe.com/flex/spark"; @namespace mx "library://ns.adobe.com/flex/mx"; @font-face { src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf"); fontFamily: vera1; embedAsCFF: false; } global { fontFamily: vera1; fontLookup: embeddedCFF; color: blue; } s|SkinnableComponent { fontFamily: vera1; fontLookup: embeddedCFF; color: black; } (); this.testEffect.motionPaths.push(new SimpleMotionPath("x", 0, 100, 500)); this.testEffect.motionPaths.push(new SimpleMotionPath("y", 0, 120, 500)); this.testEffect.motionPaths.push(new SimpleMotionPath("alpha", 1.0, 0.2, 500)); this.testEffect.target = this.uiComponent; this.testEffect.playheadTime = 333; this.testEffect.stop(); } public function ApplyEffectToTarget(target:Object):void { this.testEffect.motionPaths = new Vector.(); this.testEffect.motionPaths.push(new SimpleMotionPath("x", 0, 100, 500)); this.testEffect.motionPaths.push(new SimpleMotionPath("y", 0, 120, 500)); this.testEffect.motionPaths.push(new SimpleMotionPath("alpha", 1.0, 0.2, 500)); this.testEffect.target = target; this.testEffect.playheadTime = 500; this.testEffect.stop(); } public function NullConstructor():Boolean { try { this.testEffect = new Animate(null); } catch(error:Error) { return(false); } return(true); } public function ValidConstructor():Boolean { try { this.testEffect = new Animate(this.testPanel); } catch(error:Error) { return(false); } return(true); } public function TargetConstructor():Boolean { try { this.testEffect = new Animate(this.testPanel); } catch(error:Error) { return(false); } if(this.testEffect.target == null) return(false); return(this.testEffect.target == this.testPanel); } public function AddMPVectors():void { this.testEffect.motionPaths = new Vector.(); this.testEffect.motionPaths.push(new SimpleMotionPath("x", 0, 100, 500)); this.testEffect.motionPaths.push(new SimpleMotionPath("y", 0, 120, 500)); this.testEffect.motionPaths.push(new SimpleMotionPath("alpha", 1.0, 0.2, 500)); } ]]>