home *** CD-ROM | disk | FTP | other *** search
/ Computer Active 2010 August / CA08.iso / Multimedija / shufflr.air / ShufflrClient.swf / scripts / mx / effects / Resize.as < prev    next >
Encoding:
Text File  |  2010-06-23  |  1.8 KB  |  72 lines

  1. package mx.effects
  2. {
  3.    import mx.core.mx_internal;
  4.    import mx.effects.effectClasses.ResizeInstance;
  5.    
  6.    use namespace mx_internal;
  7.    
  8.    public class Resize extends TweenEffect
  9.    {
  10.       mx_internal static const VERSION:String = "3.5.0.12683";
  11.       
  12.       private static var AFFECTED_PROPERTIES:Array = ["width","height","explicitWidth","explicitHeight","percentWidth","percentHeight"];
  13.       
  14.       public var hideChildrenTargets:Array;
  15.       
  16.       public var widthTo:Number;
  17.       
  18.       public var heightTo:Number;
  19.       
  20.       public var widthFrom:Number;
  21.       
  22.       public var heightFrom:Number;
  23.       
  24.       public var widthBy:Number;
  25.       
  26.       public var heightBy:Number;
  27.       
  28.       public function Resize(param1:Object = null)
  29.       {
  30.          super(param1);
  31.          instanceClass = ResizeInstance;
  32.       }
  33.       
  34.       override protected function initInstance(param1:IEffectInstance) : void
  35.       {
  36.          super.initInstance(param1);
  37.          var _loc2_:ResizeInstance = ResizeInstance(param1);
  38.          if(!isNaN(widthFrom))
  39.          {
  40.             _loc2_.widthFrom = widthFrom;
  41.          }
  42.          if(!isNaN(widthTo))
  43.          {
  44.             _loc2_.widthTo = widthTo;
  45.          }
  46.          if(!isNaN(widthBy))
  47.          {
  48.             _loc2_.widthBy = widthBy;
  49.          }
  50.          if(!isNaN(heightFrom))
  51.          {
  52.             _loc2_.heightFrom = heightFrom;
  53.          }
  54.          if(!isNaN(heightTo))
  55.          {
  56.             _loc2_.heightTo = heightTo;
  57.          }
  58.          if(!isNaN(heightBy))
  59.          {
  60.             _loc2_.heightBy = heightBy;
  61.          }
  62.          _loc2_.hideChildrenTargets = hideChildrenTargets;
  63.       }
  64.       
  65.       override public function getAffectedProperties() : Array
  66.       {
  67.          return AFFECTED_PROPERTIES;
  68.       }
  69.    }
  70. }
  71.  
  72.