home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / ultimate_babysitter.swf / scripts / __Packages / it / sephiroth / XML2Object.as
Encoding:
Text File  |  2008-09-09  |  4.8 KB  |  138 lines

  1. if(true)
  2. {
  3.    if(true)
  4.    {
  5.       ┬º┬ºpush(false);
  6.    }
  7.    if(!┬º┬ºpop())
  8.    {
  9.       if(true)
  10.       {
  11.          if(true)
  12.          {
  13.             addr29:
  14.             ┬º┬ºpush(false);
  15.          }
  16.          if(!┬º┬ºpop())
  17.          {
  18.             if(!_global.it)
  19.             {
  20.                _global.it = new Object();
  21.             }
  22.             ┬º┬ºpop();
  23.             if(!_global.it.sephiroth)
  24.             {
  25.                _global.it.sephiroth = new Object();
  26.             }
  27.             ┬º┬ºpop();
  28.             if(!_global.it.sephiroth.XML2Object)
  29.             {
  30.                var _loc2_ = it.sephiroth.XML2Object = function()
  31.                {
  32.                }.prototype;
  33.                _loc2_.__get__xml = function()
  34.                {
  35.                   return this.oXML;
  36.                };
  37.                _loc2_.parseXML = function(sFile)
  38.                {
  39.                   this.oResult = new Object();
  40.                   this.oXML = sFile;
  41.                   this.oResult = this.translateXML();
  42.                   return this.oResult;
  43.                };
  44.                _loc2_.translateXML = function(from, path, name, position)
  45.                {
  46.                   var _loc2_ = undefined;
  47.                   var _loc9_ = undefined;
  48.                   var _loc4_ = undefined;
  49.                   var _loc10_ = undefined;
  50.                   if(path == undefined)
  51.                   {
  52.                      path = this;
  53.                      name = "oResult";
  54.                   }
  55.                   path = path[name];
  56.                   if(from == undefined)
  57.                   {
  58.                      from = new XML(this.xml.toString());
  59.                      from.ignoreWhite = true;
  60.                   }
  61.                   if(from.hasChildNodes())
  62.                   {
  63.                      _loc9_ = from.childNodes;
  64.                      if(position != undefined)
  65.                      {
  66.                         _loc10_ = path;
  67.                         path = path[position];
  68.                      }
  69.                      while(_loc9_.length > 0)
  70.                      {
  71.                         _loc4_ = _loc9_.shift();
  72.                         _loc2_ = _loc4_.nodeName;
  73.                         if(_loc2_ != undefined)
  74.                         {
  75.                            var _loc5_ = new Object();
  76.                            _loc5_.attributes = _loc4_.attributes;
  77.                            _loc5_.data = _loc4_.firstChild.nodeValue;
  78.                            if(position != undefined)
  79.                            {
  80.                               _loc10_ = path;
  81.                            }
  82.                            if(path[_loc2_] != undefined)
  83.                            {
  84.                               if(path[_loc2_].__proto__ == Array.prototype)
  85.                               {
  86.                                  path[_loc2_].push(_loc5_);
  87.                                  name = _loc4_.nodeName;
  88.                                  position = path[_loc2_].length - 1;
  89.                               }
  90.                               else
  91.                               {
  92.                                  var _loc8_ = path[_loc2_];
  93.                                  path[_loc2_] = new Array();
  94.                                  path[_loc2_].push(_loc8_);
  95.                                  path[_loc2_].push(_loc5_);
  96.                                  name = _loc2_;
  97.                                  position = path[_loc2_].length - 1;
  98.                               }
  99.                            }
  100.                            else
  101.                            {
  102.                               path[_loc2_] = _loc5_;
  103.                               name = _loc2_;
  104.                               position = undefined;
  105.                            }
  106.                         }
  107.                         if(_loc4_.hasChildNodes())
  108.                         {
  109.                            this.translateXML(_loc4_,path,name,position);
  110.                         }
  111.                      }
  112.                   }
  113.                   return this.oResult;
  114.                };
  115.                _loc2_.oResult = new Object();
  116.                ┬º┬ºpush(_loc2_.addProperty("xml",_loc2_.__get__xml,function()
  117.                {
  118.                }
  119.                ));
  120.                ┬º┬ºpush(ASSetPropFlags(it.sephiroth.XML2Object.prototype,null,1));
  121.             }
  122.             ┬º┬ºpop();
  123.             ┬º┬ºgoto(addr326);
  124.          }
  125.          else
  126.          {
  127.             addr326:
  128.             ┬º┬ºpush(ord(function ┬º\x1b{invalid_utf8=153}\x02┬º(┬º{invalid_utf8=136}\x07┬º, ┬º\x01┬º, ┬º\x02\x01┬º, ┬º\x01┬º, ┬º{invalid_utf8=142}{invalid_utf8=255}\b\x01{invalid_utf8=136}\x02\x01\x1d┬º, _global, it, Object, sephiroth, XML2Object, prototype, __get__xml, oXML, parseXML)
  129.             {
  130.             }));
  131.          }
  132.       }
  133.       ┬º┬ºgoto(addr326);
  134.    }
  135.    ┬º┬ºgoto(addr29);
  136. }
  137. §§goto(addr326);
  138.