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 / Architecture / Retrieving data from outside of a module in a multicore application on: May 20, 2010, 11:55:30
Ok, I'm using fabrication, but I assume the question applies to any multicore puremvc application. Often I have one module that needs to pull data from the shell. For example my module might want to know if a user has logged in, but this data lives in shell model. So far my process has been for the shell to register a command to a request notification sent from the module and for the module to register a command for a release notification sent from the shell. Is this insane, or is that really the cleanest pure mvc approach? I feel like I'm beginning to overcomplicated what is normally simple task.
2  Announcements and General Discussion / Fabrication / registerCommand in fabrication on: January 15, 2010, 12:47:33
Hey, I am looking at fabrication for the first time. I have a simple project setup and most of this is making sense to me so far. There's one bit of confusion I have. In puremvc I often register commands to respond to notifications in the ApplicationFacade:

:
override protected function initializeController () : void {
super.initializeController();
registerCommand( WHATEVER, WhateverCommand );
}

Since there's no visible facade, how does this work in Fabrication?

Thanks
3  Announcements and General Discussion / Architecture / How to implement routine utility functions in puremvc on: December 10, 2009, 02:04:19
Hi, often when I am building a puremvc application I'll have a set of controllers that act on a series of proxies. Often the controllers will need to access data from one proxy, use that info to access another bit of data on another proxy, etc. I find myself wanting to write static utility functions to handle some of these more routine operations that many of my controllers need. This would help me avoid a good bit ofduplicated code. For example I'm working on a video application that updates scores as the video progresses. Often I'll need to know the current active players at a particular time. This involves looking up the play in one proxy, locating play ids and then looking those up in a proxy of plays. It'd be great if I could somehow introduce a static utility class that my controllers could access .. something like this:

var curPlay:PlayVO = PlayUtils.getPlayAtTime(time:Number);

I guess my real question is how I can introduce a static class like this that still can access to the Proxies and Mediators in my application. Is it just a matter of passing in the facade to that function? I'm curious how others e have approached this.
4  Announcements and General Discussion / Architecture / Multiple Facades on: December 29, 2008, 02:52:48
I'm using the as 2.0 port. I have an application made up of 3 basic modules. I started one of the modules in pure mvc as a learning project. I liked it so much I built out another module with the frame work. So now I have two modules which are independent of one another.  Now I am trying to integrate those smaller applications so they work together as part of a larger application, but I seem to be running into some singleton issues trying to have more than one facade present. Any advice for how I can solve this problem?

I've read in other forums about pipes, but that's not an option for me because It's AS 2.0 and I'm already against a pretty tight deadline. Aside from loading in seperate swfs, is the a clean way I can get around this problem?

Much appreciated.

Pages: [1]