home *** CD-ROM | disk | FTP | other *** search
/ Computer Active 2010 August / CA08.iso / Multimedija / shufflr.air / ShufflrClient.swf / scripts / mx / core / ClassFactory.as < prev    next >
Encoding:
Text File  |  2010-06-23  |  773 b   |  35 lines

  1. package mx.core
  2. {
  3.    use namespace mx_internal;
  4.    
  5.    public class ClassFactory implements IFactory
  6.    {
  7.       mx_internal static const VERSION:String = "3.5.0.12683";
  8.       
  9.       public var properties:Object = null;
  10.       
  11.       public var generator:Class;
  12.       
  13.       public function ClassFactory(param1:Class = null)
  14.       {
  15.          super();
  16.          this.generator = param1;
  17.       }
  18.       
  19.       public function newInstance() : *
  20.       {
  21.          var _loc2_:String = null;
  22.          var _loc1_:Object = new generator();
  23.          if(properties != null)
  24.          {
  25.             for(_loc2_ in properties)
  26.             {
  27.                _loc1_[_loc2_] = properties[_loc2_];
  28.             }
  29.          }
  30.          return _loc1_;
  31.       }
  32.    }
  33. }
  34.  
  35.