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  PureMVC Manifold / Demos and Utils / Re: Pipes - A PureMVC AS3 MultiCore Utility on: October 17, 2008, 12:50:40
I'm working on a PureMVC/Pipes project (both of which I ported down to AS2) and I'm unsure of the best way to pass data in to a module.

I have my main app, which has a UserVO object representing the user. I have a module with a bunch of self-contained logic that performs configuration operations on the userVO, and then passes it back to the main app.

I have gotten as far as getting the module to load and connect up with the main app via pipes, and I can send a message from one to the other.

How should I pass in the UserVO to the module? It seems like I should send it in via a Message--after the module loads and is connected, send it from the main app's JunctionMediator. But I think I don't get the Message yet. It seems like it is supposed to be a wrapper for a Notification--does it have to be? Is there any problem in just passing the UserVO as the body of a Message, and have the module's JunctionMediator create the notification and send it along from there?

Any help you can offer will be greatly appreciated!
2  Announcements and General Discussion / Architecture / Re: Multicore for AS2? Is that even what I want? on: September 15, 2008, 02:23:52
Thanks very much for the reply. I ad only just gotten my head around the single-core PureMVC; the module aspect was turning me into a pretzel. I think I'm making progress though...
3  Announcements and General Discussion / Architecture / Re: Multicore for AS2? Is that even what I want? on: September 15, 2008, 01:08:52
@Cliff,

I'm making some good progress porting Multicore and Pipes at AS2, but I have some architecture related questions--I feel like the weeds are getting taller all around me!

As I understand it, the purpose of Multicore is to allow one PMVC app to load another without their notifications and commands colliding. The purpose of Pipes is to allow two or more PMVC cores to communicate in an ordered way.  The purpose of having multiple cores is to allow each core to have its own self-contained logic, and not need to know anything about other cores, if there are any. Is this correct so far?

I was looking at the PipeWorks demo and trying to understand how the logic is encapsulated. It would appear that Logger and Prattler don't know, or need to know, anything about each other. It also appears that you need to create a sort of meta-application that has references to Logger and Prattler, as well as itself. This meta-app creates the modules, which in turn instantiate the respective facades and run startup() on them, and we're off to the races.

However, it seems that the benefit of encapsulating Logger and Prattler is lost because the shell app has to have all their classes ready when it compiles, in order to work.

In my app, I'll have multiple modules, each represented as a SWF that starts up its own PMVC core, a la ApplicationFacade.getInstance().startup() in the first frame. How do I separate them so that the cores don't require each other's source trees in order to compile?

Thanks very much for any advice you can offer,

David Ham
4  Announcements and General Discussion / Architecture / Re: Multicore for AS2? Is that even what I want? on: September 12, 2008, 07:37:25
I was looking at the AS3 multicore version and it looks like they're pretty similar. I'll start porting it today; I'll send you a zip when I have something working.
5  Announcements and General Discussion / Architecture / Multicore for AS2? Is that even what I want? on: September 09, 2008, 02:24:19
Hi,

I'm working on an online social/gaming environment written in AS2 that I am migrating into a PureMVC environment. The main app handles the user management, but there are games and other modules that get loaded at runtime that will need to communicate with the main app--updating the user's score, adding items to his inventory, and so on. I'd like to do the modules and games as PureMVC also, if I can, so that there will be a consistent architecture across all the properties.

How would I handle this in AS2? Is there a good high-level article describing the AS3 Multicore setup that would explain how it works? Is what I am describing even a true multicore application?

Thanks for any advice you can offer,

OK
DAH
6  PureMVC Manifold / Standard Version / Where is 2.0.3? on: September 04, 2008, 07:33:54
I am using the latest AS2 code from SVN, but I notice that the MacroCommand.addSubCommand() still requires an instance of an ICommand, even though the release notes say this has been fixed to accept class references. Am I looking in the right place? The SVN on the AS2 port page has tags that only go as high as 1.0. Any help is much appreciated. Thanks!

David Ham
Pages: [1]