Hi,
I am developing a series of videogames, and I am using a “multi-SWF” approach to keep parts as independent as possible.
Multiple games are loading the same toolbar, that is made of 2 SWFs: an “agent” that manages the communication between the game and the buttons, and the buttons set, configured through an XML file (I splitted the toolbar into two SWFs as the buttons SWF is the same for all games, while the agent SWF is different for each kind of games).
gameSWF -loads-> toolbar(agentSWF -loads-> buttonsSWF)
Now the problem is that the toolbar and the game seem to be more dependent than they should be: if I modify the toolbar to look a bit different I need to recompile the game too to see all the edits, even if the game just loads the external swf and uses its public methods through an interface. When the games are 40 this is really annoying!
I read somewhere that this could be a protection to avoid hacking, and it is all about ApplicationDomain, but in my case it is a pain in the ***!
Another weird thing is that when I i.e. modify both agent SWF and buttons SWF, if I first recompile the agent (button SWF is loaded by agent, so it should be compiled before it) I see all the buttons edits too!
It looks like the importer SWF includes inside itself all the child SWFs edits, and when loading it just needs to verify they are in the correct path to run correctly.
What do I need to do to make the toolbar totally independent from the games? The games shouldn’t know ANYTHING about the toolbar before loading it, apart for public methods signatures.
Thanks