Hi everyone!
I'm new to the forum and to PureMVC.
I've started a couple of days ago to wrap my head around its structure and implementation.
Actually i'm making my tests with the standard edition but i plan to switch to the multicore edition pretty soon, cose my projects are often build in modules and i will like to keep "separated" the various module's implementation.
Now i'm giving a try to the utilities, the StartupManager utility actually, wich is great indeed.
I'm just having some problem adding some resource dynamicalli while using requirements ...
i've a generic "ResourceProxy" to handle the loaded resources in wich the SRNAME is generated by an id that I pass to the constructor along with the resource url ... so, these are my steps:
- in the startup command i load an xml file ("config.xml") in wich are listed the other resources.
- i call the keepResourceListOpen method on the monitor
- when the WAITING_FOR_MORE_RESOURCES notification is received by the mediator i send a notification who trigger LoadAssetsCommand
- LoadAssetsCommand parse the config xml, add the new resources and then call closeResourceList on the monitor
now, everything is ok since i put in some requirements.
let's say that resources B C and D need that resource A is loaded ...
i keep a reference to the StartupResourceProxy istance used for resource A and pass it to the other resources
the StartupManager now loads only resource A and then stops, without any error, message or notification, ignoring the other resources ...
i feel like i'm doing something wrong, but i can't figure out what ... so, thanks to anyone who can help
