2 Replies Latest reply on Jan 10, 2008 9:20 AM by Tigomark

    caching the machine

    Tigomark
      Is there a way to write an action script that will make sure that caching is set to zero.

      I handle caching in my php script

      [CODE]
      header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
      header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified
      header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1

      [/CODE]

      however the flash player seems to not respect the caching script and thus the information outputed does not update.
        • 1. Re: caching the machine
          Tigomark Level 1
          Ok this whole thing goes to the fact that I never reset the list in
          the first place.

          So what I need to do is take the list

          Code:

          private function resetForm():void{


          tempXML.asset = false; //clear it I could also us tempXML.asset =
          newXMLListCollection(tempXML.asset); either way it clears it
          tempXML.asset = tempXML.asset; //redisplay it



          }

          This will definatley clear out the old list but now I need a way to
          recall the same list from the

          Code:

          <mx:XML id="tempXML"
          source="https://mysite.net/interface.php?action=showopen&amp;operation=showasset\
          s&amp;format=xml&amp;opstatus=defect"
          />

          and I'm not quite sure how to do this
          • 2. Re: caching the machine
            Tigomark Level 1
            I have also tried to change the way that I get the data to

            Code:

            <mx:HTTPService id="tempXML"
            url="https://mysite.net/interface.php?action=showopen&amp;operation=showassets&a\
            mp;format=xml&amp;opstatus=defect&amp;rand=12345645647"
            ></mx:HTTPService>

            <mx:TileList dataProvider="{tempXML.asset.fleet}"
            width="344" backgroundColor="#000000" color="#ff0000" fontSize="27"
            borderColor="#000000" columnWidth="300" rowHeight="50"
            themeColor="#808080" fontWeight="bold" allowMultipleSelection="true"
            id="TileList1" height="0" y="202" x="178"/>


            <mx:Button label="Refresh Page Now" height="27" fillAlphas="[1.0,
            1.0]" fillColors="[#030000, #030000, #474545, #474545]"
            borderColor="#DCDEDF" click="HTTPService.send()"/>

            but now I'm getting 2 errors


            1061: Call to a possibly undefined method send through a reference
            with static type Class.

            1119: Access of possibly undefined property asset through a reference
            with static type mx.rpc.http.mxml:HTTPService.


            I am trying to find the reason for that problem it seems it doesn't
            like the services being used with the TileList. Still trying to see
            what's going on now.
            tigomark is online now Report Post Edit/Delete Message