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: first project with pureMVC on: February 05, 2008, 09:42:42
No, you are not missing something, and that is most definitely a possibility. I guess what I am looking for is a consistent way to pass information to a proxy before load. Creating and setting different properties on the proxies didn't seem like the most elegant solution because the interface for the class would essentially be different for each proxy. A new developer coming in might not know what properties have to be set before 'load' can be called. But maybe just adding an init method or something of the sort would work just as well.
2  Announcements and General Discussion / General Discussion / Re: first project with pureMVC on: February 05, 2008, 01:04:59
I've been following this post with interest as I (and a couple co-workers) are working on setting up a Flash application using PureMVC.

The work that has been done with the StartupMonitorProxy so far has been great. However, I have a question about how you might go about passing data in to the proxies that are being managed by the StartupMonitorProxy.

In my example case the first proxy I want to load (ConfigProxy) is going to load in a configuration xml file. I would like to be able to specify the location of this xml file via FlashVars. Previously I was accomplishing this by passing in the app.loadInfo object when I called the 'load' method on ConfigProxy. But now that StartupMonitorProxy is in place it is calling 'load' automatically and obviously is not setup to pass information that way.

Is there a way to pass in data to the Proxy on load? Or is there another preferred way you could do something like this? It's entirely possible that I am missing an obvious answer because I am fairly new to PureMVC.

Thanks,
Jud
Pages: [1]