?
Solved

Caching issue with flash

Posted on 2011-03-21
4
Medium Priority
?
289 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 1000 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 1000 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

Quick Cloud Training

Looking for some quick training on the cloud in 2 hours or less? Check out these how-to guides in AWS, Linux, OpenStack, Azure, and more!

Question has a verified solution.

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

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
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.
Suggested Courses

801 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