0 Replies Latest reply on May 31, 2012 10:37 PM by aswathykrishnan

    Htmlloader caching Problem

    aswathykrishnan

      To load htmlpage inside flex application i used mx:html component as following,

       

      html_loader.htmlloader.useCache                        =     true;

      html_loader.htmlloader.cacheResponse               =     true;

      html_loader.htmlloader.load(req);

       

      <mx:HTML  id="html_loader"  width="1000" height="600" complete="preloader_completeHandler(event)" />

       

      But pages are not getting cached,every time request is loaded when navigates through internal links.

       

       

      Then i tried in this way,

       

      private var html_loader:HTMLLoader = new HTMLLoader();

       

      html_loader.width                =     1000;

      html_loader.height               =     600;

       

      html_loader.useCache              =     true;

      html_loader.cacheResponse     =     true;

      html_loader.load(req);

       

      var ui:UIComponent                  =     new UIComponent();

      ui.addChild(html_loader);

      addElement(ui);

       

      Now pages are getting cached , but sometimes not....

       

      What will be the reason???? Please help.......