2 Replies Latest reply on Jun 29, 2009 7:51 AM by andrewthorp

    History Management

    andrewthorp Level 1

      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.

       

      For Instance:

       

      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:

       

      #app=ca1a&21f8-module=Gallery&21f8-state=start&55b6-module=EmailGreeting&55b6-state=editor

       

      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?

       

      Thanks!