Right now, our application is a main app that loads modules in as I need them, but I need to figure out how to register each module with the same HistoryManager.
The problem is that the URL is being appended whenever I call HistoryManager.save() rather than replacing the information.
Main App - creationComplete calls mx.managers.HistoryManager.register(this);
Each Module - creationComplete calls mx.managers.HistoryManager.register(this);
Each Module - creationComplete calls mx.managers.HistoryManager.save()
For each module, saveState():Object looks something like this:
var o:Object = new Object();
o.module = thisModulesName;
o.state = currentStateOfModule;
The URL will do something like this though:
I am under the impression that the saveState should actually register with the browser and replace the key,value pairs, if I am trying to overwrite them.
Any help would be great.
Could this be because it is a Singleton Enforced class and I need to do something else in the main app?
Any help, along with any information of the right way to implement this and the expected flow would be great!