Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #initclip 28
- if (!dofus.LoadConfigModulesList)
- {
- if (!dofus)
- {
- _global.dofus = new Object();
- } // end if
- var _loc1 = (_global.dofus.LoadConfigModulesList = function (oAPI)
- {
- super();
- this.initialize(oAPI);
- }).prototype;
- _loc1.initialize = function (oAPI)
- {
- super.initialize(oAPI);
- };
- _loc1.modulesLoaded = new Array();
- _loc1.loadModules = function()
- {
- var modulesXML = new XML();
- modulesXML.ignoreWhite = true;
- modulesXML.onLoad = function(bSuccess)
- {
- _loc1.onLoadModulesList(bSuccess,this,_loc1.modulesLoaded);
- };
- modulesXML.load("modules/list.xml");
- };
- _loc1.onLoadModulesList = function(bSuccess, xDoc, array)
- {
- if (bSuccess)
- {
- var modules = xDoc.firstChild.childNodes;
- for (var module in modules)
- {
- var attributes = modules[module].attributes;
- var mod = {name:attributes.name, path:attributes.path};
- array.push(mod);
- createEmptyMovieClip(mod.name, getNextHighestDepth());
- loadMovie(mod.path, mod.name);
- }
- }
- };
- ASSetPropFlags(_loc1, null, 1)
- } // end if
- #endinitclip
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement