home *** CD-ROM | disk | FTP | other *** search
/ One Click 21 (Special) / OC021.iso / Interface / it.dig / scripts / __Packages / mx / utils / ClassFinder.as next >
Encoding:
Text File  |  2006-07-04  |  634 b   |  27 lines

  1. class mx.utils.ClassFinder
  2. {
  3.    function ClassFinder()
  4.    {
  5.    }
  6.    static function findClass(fullClassName)
  7.    {
  8.       if(fullClassName == null)
  9.       {
  10.          return null;
  11.       }
  12.       var _loc3_ = _global;
  13.       var _loc4_ = fullClassName.split(".");
  14.       var _loc2_ = 0;
  15.       while(_loc2_ < _loc4_.length)
  16.       {
  17.          _loc3_ = _loc3_[_loc4_[_loc2_]];
  18.          _loc2_ = _loc2_ + 1;
  19.       }
  20.       if(_loc3_ == null)
  21.       {
  22.          _global.__dataLogger.logData(null,"Could not find class \'<classname>\'",{classname:fullClassName},mx.data.binding.Log.BRIEF);
  23.       }
  24.       return _loc3_;
  25.    }
  26. }
  27.