Unable to load unload Chat module at run time.
My scenario is like in my config.xml i pass chat module but at the time of load module by use of some condition i load or unload chat module in Config.as in
public function isModulePresent(name:String):Boolean {
var mn:XMLList = config.modules..@name;
var found:Boolean = false;
for each (var n:XML in mn) {
if (n.toString().toUpperCase() == name.toUpperCase()) {
if(n.toString() == "ChatModule" && (BBB.initUserConfigManager().enabledChat() == "false")){
found = false;
}else{
found = true;
}
break;
}
}
return found;
}
like that but it always load chat module how i can load and unload chat module at run time.