home *** CD-ROM | disk | FTP | other *** search
- package mx.effects
- {
- import flash.events.EventDispatcher;
- import mx.core.mx_internal;
- import mx.effects.effectClasses.MaskEffectInstance;
- import mx.events.TweenEvent;
-
- use namespace mx_internal;
-
- public class MaskEffect extends Effect
- {
- mx_internal static const VERSION:String = "4.5.0.20967";
-
- private static var AFFECTED_PROPERTIES:Array = ["visible"];
-
- public var createMaskFunction:Function;
-
- public var moveEasingFunction:Function;
-
- mx_internal var persistAfterEnd:Boolean = false;
-
- public var scaleEasingFunction:Function;
-
- public var scaleXFrom:Number;
-
- public var scaleXTo:Number;
-
- public var scaleYFrom:Number;
-
- public var scaleYTo:Number;
-
- private var _showTarget:Boolean = true;
-
- private var _showExplicitlySet:Boolean = false;
-
- public var xFrom:Number;
-
- public var xTo:Number;
-
- public var yFrom:Number;
-
- public var yTo:Number;
-
- public function MaskEffect(param1:Object = null)
- {
- super(param1);
- instanceClass = MaskEffectInstance;
- this.hideFocusRing = true;
- }
-
- public function get showTarget() : Boolean
- {
- return this._showTarget;
- }
-
- public function set showTarget(param1:Boolean) : void
- {
- this._showTarget = param1;
- this._showExplicitlySet = true;
- }
-
- override public function set hideFocusRing(param1:Boolean) : void
- {
- super.hideFocusRing = param1;
- }
-
- override public function get hideFocusRing() : Boolean
- {
- return super.hideFocusRing;
- }
-
- override public function getAffectedProperties() : Array
- {
- return AFFECTED_PROPERTIES;
- }
-
- override protected function initInstance(param1:IEffectInstance) : void
- {
- var _loc2_:MaskEffectInstance = null;
- super.initInstance(param1);
- _loc2_ = MaskEffectInstance(param1);
- if(this._showExplicitlySet)
- {
- _loc2_.showTarget = this.showTarget;
- }
- _loc2_.xFrom = this.xFrom;
- _loc2_.yFrom = this.yFrom;
- _loc2_.xTo = this.xTo;
- _loc2_.yTo = this.yTo;
- _loc2_.scaleXFrom = this.scaleXFrom;
- _loc2_.scaleXTo = this.scaleXTo;
- _loc2_.scaleYFrom = this.scaleYFrom;
- _loc2_.scaleYTo = this.scaleYTo;
- _loc2_.moveEasingFunction = this.moveEasingFunction;
- _loc2_.scaleEasingFunction = this.scaleEasingFunction;
- _loc2_.createMaskFunction = this.createMaskFunction;
- _loc2_.mx_internal::persistAfterEnd = this.mx_internal::persistAfterEnd;
- EventDispatcher(_loc2_).addEventListener(TweenEvent.TWEEN_START,this.tweenEventHandler);
- EventDispatcher(_loc2_).addEventListener(TweenEvent.TWEEN_UPDATE,this.tweenEventHandler);
- EventDispatcher(_loc2_).addEventListener(TweenEvent.TWEEN_END,this.tweenEventHandler);
- }
-
- protected function tweenEventHandler(param1:TweenEvent) : void
- {
- dispatchEvent(param1);
- }
- }
- }
-
-