I am using sample flex viewer.Now I want to connect with cofig file dynamically i.e. in ConfigManager.as
switch(Application.application.deptCode)
{
case 1: //connect with department1 config file
case 2: //connect with department2 config file
}
Each department has its associated cogif file.Now in HomePage I created buttons.When user clicks on Department1 button cofig1 should be loaded and so on.I defined one variable
[Bindable]public var deptCode;
On buttton click i am changing value of this variable But when i access this variable in my ConfigManager file then it is creating problem.Further code of ConfigManager doesn't execute whenever i access this variable.
Please help me how to access this Homepage variable in ConfigManager.as file.Is another alternative exists.