Solved

Caching issue with flash

Posted on 2011-03-21
4
286 Views
Last Modified: 2012-05-11
We have a flash slideshow file that loads links and images from an XML file.  We need the flash file itself to cache like normal behavior, however it seems to be caching the XML file as well.  This file changes regularly, and this is causing a problem.  How can we change this, either through the ActionScript or through the XML file header so that it doesn't cache the XML?

I wish I could offer the sample code that handles the XML request, but I can't get to it at the moment.  I'm going to assume it's a simple XML.load expression and not an XML socket.
0
Comment
Question by:jamesbcox1980
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 17

Accepted Solution

by:
deepanjandas earned 250 total points
ID: 35178919
add a random number to the xml url path while calling from flash, like this:

var r:Number = Math.Random();
new URLRequest( "http://womedomain.com/xml/sample.xml?r="+r);

Warm Regards
Deepanjan Das
0
 
LVL 19

Assisted Solution

by:quizengine
quizengine earned 250 total points
ID: 35178925
0
 
LVL 4

Author Comment

by:jamesbcox1980
ID: 35178944
Thanks, we will try adding the "?nocache=" and the date/time.  It appears to the safest way, however improbable it might be that we will get the same random number twice.  I'll try tomorrow and let you know how it works.
0
 
LVL 4

Author Closing Comment

by:jamesbcox1980
ID: 35200465
Thanks, both answers work equally.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question