Title: Q: How do I setup a multiple swf project and let them communicate? Post by: jorren on November 20, 2008, 06:44:14 Hi,
I'm pretty familiar with the mvc concept as long as everything gets handled in one swf file. For this new project I'm about to start, there need to be different swf files because of size/loading issues. I will be having a root file which can either load in the home, agenda or contact swf depending on what the user selects. On the homepage there is also a smaller list of agenda items. Which when clicked would load the agenda.swf and show the details of that particular item. On each swf there will be buttons or links to go to another swf file.
I'm a complete newbie to puremvc, so please be gentle :) Title: Re: Q: How do I setup a multiple swf project and let them communicate? Post by: puremvc on November 20, 2008, 08:37:02 This sounds like a job for MultiCore!
Check out the MultiCore version of the framework. It allows multiple PureMVC apps to run in the same VM, collaborating to get the job done. As for communication between them, you have two options: interfaces or pipes. And you can mix and match in the same app. With interfaces, the shell (the main, loading app) implements a specific interface (of your design) and the modules (or loaded swfs) implement a different interface. The modules are given a reference to the shell and visa versa, so that the may communicate by invoking methods on each other. This is synchronous. With pipes, the shell and modules (collectively called 'cores') communicate by sending and receiving messages asynchronously through pipes to each other. Messages can be filtered, tee'd, queued and priority sorted. Hope this helps, -=Cliff> |