Hi List,
It's more a question about OOP thant pixlib question, but I use pixlib
and the MVC FC pattern to build my applications, so I thinks it's a
question I can post here.
I've a main application based on MVC FC pattern. This application
always load two other swf based or not in the MVC FC pattern too. In
order to shared information these 3 swf files can access singleton
where I put some datas. It's a way to allow the 2 others swf files
loaded to initialize themself with the current context of the
application. Indeed, when theses swf files was loaded I don't know the
best way to create a communication between them and the main
application. Via the main class of each one ? via the models of each
one ? how ?
Actualy, I've the same probleme when I want the two others files load other swf files.
I want :
- A, B, C and D share some data for initialize with the current context, mostly assets paths and textfield configuration.
- communication between A and B
- communication between A and C
- communication between C and D
- (maybe) communication between A and D
When I say communication I mean bilateral communication.
What's the best way ? Use a list of events write in a common package file and allows the swf files to broadcast and listen theses events ?
Thanks for your help
_______________________________________________
Pixlib mailing list
Pixlib@...
http://osflash.org/mailman/listinfo/pixlib_osflash.org