0 Replies Latest reply on Aug 15, 2012 8:14 AM by home_aidan

    Where does flash cache images too?

    home_aidan Level 1

      For example if I run this simple loader...

       

       

       

       

       

       

       

       

      imageLoader = new Loader();
      
      
      
      
      
      
      
      
      imageLoader.load(new URLRequest("http://farm9.staticflickr.com/8430/7735091072_5c9139c13e_b.jpg));"
      
      
      
      
      
      
      
      
      
      
      
      
      imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);
      
      
      
      
      
      
      private function imageLoaded(e:Event) {
           trace("loaded");
      }
      
      

       

       

      .. It takes a few seconds to load the image from flickr... (Fair enough its a decent size)

       

      If I run it again it appears almost instanty which would imply it has been cached somewhere on my machine.

       

      Which is a good thing! I like this!

       

      However as the app in question might download a large amount of graphics over time (its on a kiosk) I was thinking about writing somthing that would clear out the cache once a week or so.

       

      But I dont no where flash keeps its cache? Ive done a search for the above image locally and it doesnt show up anywhere.

       

      Any ideas?

       

       

      Thanks

        Aidan