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 / Multiple applications with the same core [flash] on: April 23, 2009, 08:14:17
Hi,

This is probably a very simple question but is has me stumped for a while now.

I'm building several sites with Flash CS4 with the same core taking care of loading, navigation, interface logic, etc. Mostly the visual elements (components) will be different with perhaps a few changes to the mediators.

Of course I want the custom code for each project to be as little as possible but I have trouble figuring out how to approach this. If I uses custom classes somewhere in the application they have to be imported making the importing class custom as well, etc.

What I would like to do is have the base class that is defined in the FLA be different for each application. This class would define it's own AbstractFactory which later on in the application creates the required components and mediators.

This way I can keep the ApplicationFacade, startup logic, proxies, etc identical for each application.

So that's the theory. But I can't figure out how to make it work :-(

Any help would be much appreciated.

Bob

Pages: [1]