Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Show Posts

* | |

  Show Posts
Pages: [1]
1  Announcements and General Discussion / General Discussion / Re: How to pass data from different view and pass it to command class on: December 18, 2008, 02:16:41
Is it the below approach good.

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


Regards,
Mansoor Achire
2  Announcements and General Discussion / General Discussion / Re: How to pass data from different view and pass it to command class on: December 18, 2008, 01:27:45
Thanks Cliff, Is this the only way?. I was looking for a kind of viewlocatar
3  Announcements and General Discussion / General Discussion / How to pass data from different view and pass it to command class on: December 18, 2008, 01:13:44
Hi,

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.



Thanks,
Mansoor Achire
4  Announcements and General Discussion / Architecture / Re: How to use resourceManager in Mediators on: November 11, 2008, 09:02:52
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");

Thanks,
Mansoor Achire
5  Announcements and General Discussion / Architecture / Re: How to use resourceManager in Mediators on: November 11, 2008, 07:57:20
I am not able to use resourceManager in mediators, it is giving compilation error undefined property. In view I am able to use it.
6  Announcements and General Discussion / Architecture / How to use resourceManager in Mediators on: November 10, 2008, 03:35:06
I am using resourceManager in my views using resourceManager.getString("myResource","myLabel")
How do I use the same in my mediators.

Thanks,
Mansoor Achire
7  Announcements and General Discussion / Getting Started / Re: Where is the best place to declare a global variable on: November 06, 2008, 01:52:24
Thanks, really apreciate.

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

Thanks,
Mansoor
8  Announcements and General Discussion / Getting Started / Re: Where is the best place to declare a global variable on: November 06, 2008, 11:42:56
Thanks,

each time the this proxy is retrieved is it going to load xml data? Do we need to make it singleton to avoid that, if so how to make proxy singleton


Mansoor
9  Announcements and General Discussion / Getting Started / Where is the best place to declare a global variable on: November 06, 2008, 08:02:23
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
Pages: [1]