All the three views will be inside a main view The Main View Mediator will listen the button click (make event bubbles true) then the main view will get the data using mainview.chilview.data
I have three views when I click on a button in one view, it need to pass data from other two views. What is the best way do this. Is there any viewlocater to look for other view datas.
all the views are having its own mediator doing its own thing.
I understood that resourceManager is part of UIcomponent. This is why i am not able to access it in my mediator. It works when I try ResourceManager.getInstance().getString("resources", "myKey");
One more doubt on this. Is it okey to declare global variable in ApplicationFacade and get the data through proxy and use facade to get the global variable.
ApplicationFacade
{ public var myGlobalVariable;
ApplicationFacade( ){ var myProxy:MyProxy = facade.retriveProxy(MyProxy.NAME) as MyProxy; myGlobalVariable = myProxy.retrieveGlobalVariables(); } }
[/color] and then access the global variable using facade
I would like to declare a global variable where I can access it anywhere, this global variable reading data from an xml file. In puremvc where should I declare this global variable so that I can access it in mediators, command and proxy classes