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 / Fabrication / Re: The modules with proxies have error when load both on: March 09, 2009, 09:19:15
I am not sure who is still watching this thread, but I have finally fixed my issues.

The good news is they have nothing to do with Fabrication, PureMVC or the way I was loading my modules.

The bad news is that the issues are actually a bug in Flex/AS3.  Without going into details, to fix the problem I had to add these lines of code in the main mxml file for the fabrication routing demo:

import mx.messaging.messages.AcknowledgeMessageExt;
import mx.managers.HistoryManager;
private var hist:HistoryManager;
private var ak:AcknowledgeMessageExt;


I am not using the 2 variables anywhere in my project, but for some reason I HAVE to declare them in the main shell, otherwise flex gets confused and craps out.  Here are some links that further explain this issue:

http://www.blogjava.net/fine/archive/2009/01/04/249753.html
https://bugs.adobe.com/jira/browse/SDK-13121
http://bugs.adobe.com/jira/browse/SDK-12218

Thanks, and I hope this will save many hours to someone else if they are encountering this issue/issues :)
2  Announcements and General Discussion / Fabrication / Re: The modules with proxies have error when load both on: March 05, 2009, 01:44:05
Hi Darshan,

I am working with Mark on the same project.  We cannot seem to find a solution for our problem.  Just by intuition, I have a feeling we are not doing something right when trying to add our own modules to the shell demo.

First, let me describe what we are doing.

The goal
- We have two stand-alone applications (ModuleA and ModuleB) which are built using PureMVC multicore and we are trying to integrate them into a shell.
- For now, all we want is to have both of our apps to be loaded into the shell, and work on their own (no module-to-module communication, or module-to-shell comunication)

We took the shell routing demo, and inside the src folder, we noticed you have:
- shell
- simplemodule

Following the example, we took the code for both ModuleA and ModuleB and placed it in the shell app, so now we have:

- shell
- simplemodule
- ModuleA
- ModuleB
-(other folders)

For each of ModuleA and ModuleB, we have taken the main MXML file, and turned it into a fab:FlexModule.

We have modified the demo, so instead of only one "Add Module"  button, now there are 2.

The whole project has only 1 lib folder, in which we have all the libraries needed for all the modules.

We then compile the whole project (the shell), and we end up with 4 binaries - shell.swf, simplemodule.swf, moduleA.swf and moduleB.swf.

This is what happens when we run the Shell:

- When we load only one module (doesn't matter which one), it gets loaded and it works fine.  We can even load the same module multiple times and it still works fine - each instance being independent of the other one.

- IF we load one of our modules (either A or B) and then we also load the simplemodule.swf, our module still works fine.

We start getting into trouble if we load BOTH of our modules (Module A and Module B).  We get different errors, but they are all of the same type.  I will post a few of them at the end of the thread.

Are we doing anything wrong in terms of our methodology of trying to get our modules into the shell?

Any help appreciated.

Thanks,

Catalin

Some errors:

This error appears when clicking on the "remove all" button that's part of the demo.
TypeError: Error #1034: Type Coercion failed: cannot convert mx.managers::HistoryManagerImpl@bfb5291 to mx.managers.IHistoryManager

This error appears when loading Module A, playing around with it, then loading Module B, then going back to Module A and playing around again
TypeError: Error #1034: Type Coercion failed: cannot convert mx.messaging.messages::AcknowledgeMessageExt@4fd8ef9 to mx.messaging.messages.IMessage

3  Announcements and General Discussion / Architecture / Need some general advice on application design on: November 27, 2008, 04:41:50
Hi folks,

I have been using PureMVC (single core) for about 8 months now together with AS3/Flex.  I have been learning AS3/Flex and PureMVC at the same time.  The project I am working on right now is a CRM system, so its core components are very easily broken into modules.

I got to a point where I need to have multiple instances of the same view and/or mediator and to be able to handle them.  This part I have done using the singleton puremvc, however I find it cumbersome and might create issues later.

I have just started reading a few days ago about PureMVC Multicore, and I understand it for the most part.  I still need some more time to soak in how the communication is done between individual modules and how to load/unload modules on the fly.

This is where I need advice.  I am thinking of taking each module from my application, and put it in its own application.  So right now, we have requirements for 9 modules.  I want to create these modules as independent applications (using PureMVC singlecore or multicore? ) and then creating a 10th "Main" application, which will incorporate these modules. 

What does everyone think? The other option is to start up a new project using the multicore and code everything as a whole application.  I am a little pressed by time and I don't know which route to take.

I really hope my question makes sense and thanks a lot in advance for your help!
4  Announcements and General Discussion / Architecture / What is the best way to handle multiple languages in PureMVC? on: July 14, 2008, 07:37:17
Hi all,

As the subject states, what is the best way to set up and manage different language files for a (Flex) application in PureMVC?

Ie.  I need all the labels in the application to be in either English or French, depending on which user logs in.  Also, I need the capability to extend to more than two languages.

Thanks in advance.
Pages: [1]