Advertisement
Guest User

Untitled

a guest
Mar 25th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #initclip 28
  2. if (!dofus.LoadConfigModulesList)
  3. {
  4.     if (!dofus)
  5.     {
  6.         _global.dofus = new Object();
  7.     } // end if
  8.     var _loc1 = (_global.dofus.LoadConfigModulesList = function (oAPI)
  9.     {
  10.         super();
  11.         this.initialize(oAPI);
  12.     }).prototype;
  13.     _loc1.initialize = function (oAPI)
  14.     {
  15.         super.initialize(oAPI);
  16.     };
  17.     _loc1.modulesLoaded = new Array();
  18.     _loc1.loadModules = function()
  19.     {
  20.         var modulesXML = new XML();
  21.         modulesXML.ignoreWhite = true;
  22.         modulesXML.onLoad = function(bSuccess)
  23.         {
  24.             _loc1.onLoadModulesList(bSuccess,this,_loc1.modulesLoaded);
  25.         };
  26.         modulesXML.load("modules/list.xml");
  27.     };
  28.     _loc1.onLoadModulesList = function(bSuccess, xDoc, array)
  29.     {
  30.         if (bSuccess)
  31.         {
  32.             var modules = xDoc.firstChild.childNodes;
  33.    
  34.             for (var module in modules)
  35.             {
  36.                 var attributes = modules[module].attributes;
  37.                 var mod = {name:attributes.name, path:attributes.path};
  38.                 array.push(mod);
  39.                 createEmptyMovieClip(mod.name, getNextHighestDepth());
  40.                 loadMovie(mod.path, mod.name);
  41.             }
  42.         }
  43.     };
  44.     ASSetPropFlags(_loc1, null, 1)
  45. } // end if
  46. #endinitclip
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement