Thx for the answer(s).
I'm still not sure if I'm getting everything right. for my better understanding lets split the whole thing into 2 seperate "problems"
1.: Messaging
Maybe the most concrete question is: where do I instantiate the Consumer?
Basically there are two MessagingDestinations for the platform: one to recieve the updated userlist from the server and recieves things like invitations to a game from other clients (and other like tasks, seperated by different subtopics) and the other which is there only for all the chatmessages (of course with different subtopics for each game and one all users).
is this paragraph really all about messaging or does the the messaging part stops at "...lightweight." (thats how far I think understand parts of it
)
you probably want a message handling module that handles receiving and sending messages for the platform. That module would probably be pretty lightweight. Actually talking to the service probably happens in a proxy. Its only when multiple proxies need to talk to the same service that you want to push all the knowledge of the service into a delegate. The delegate simply makes calls on behalf of some other actor (proxies in PureMVC) and makes sure the responses flow back to the appropriate caller.
The problm I see with Messaging is: how can the proxys be updated with the unrequested data? should each relevant proxy subscribe to destination/subtopic and handle incoming messages by itself? Then what about multiple dynamically created Proxys, when for example a new game/chatgroup is opened,when and how to register? If the Proxys are somehow decoupled from the whole messaging, should they be updated by a command which reacts on a special Notification?...wow so manyquestions
I really have no idea of how to use modules, and besides of encapsulating function from the app what are the benefits? Maybe building a "pretty lightweight message handling module" is a good starting point, but I have no idea of how to start. If you still think this would be the best souloution could you give me some hints/links on how to start in a way, that I can use the result in the big app in the end?
2. RemoteObjects
Until now I thaught this (and not mesaging) is where delegates comes into play. maybe I should stay with messaging in this thread and open a new one fo the RO-specific questions. because the plattform is connecting to two RemoteObjects: SessionFacade (scope:session) for everything authentication-specific and PluginFacade (scope: application) for everything about the gameplugins, which should each be used by different proxys the idea of a delegateProxy will help a lot, thx.
Could I make myself (more) clear...
Why I already started to use fabrication (yes without understanding everything beneeth, maybe even without understanding anything beneeth) is that I have to/think I need to/ maybe want to handle with deffered/dynamic instanciation in viewstacks an that fabrication saves me from writing a lot of code for this.
At the moment we have a concept where each game brings its own client- AND serversite code and the only (clientside) connection between platform and specific plugins is starting a game an adding users to it wich were invited (wich leads to load a swf at the appropiate client and initially give it some data to identify and initialize itself over a Function that is defined by a BasePluginApplication)as well as opening a new chatgroup for this gamegroup. so im not sure about what we need modules for gameplugins for.
greetings from germany again,
and thx in advance,
karfau
ps: if this post (or parts of it) doesn't make sence at all, wait for me to read it again when I had some sleep and let me correct it
(but you're welcome to give hints on what stays unclear...). cu