Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-12-2004, 01:41 PM
Junior Member
 
Join Date: May 2004
Posts: 3
Default XML file in cache (how do I get rid of it?)

I am creating a flash ticker with swfkit 2.1
It's an exe (application) file that stays on the users' desktop and checks for news updates every minute or so by reading tha contents of a XML file called news.xml that is located on the server and updated periodically.

MY PROBLEM IS THIS::: the swfkit player gets the news.xml file once and then stores it in temporary internet files and I cannot figure a way to get rid of that cache from the swfkit player.

Please, any sugestions are welcome.

P.S. ::: I have tried something like this, but it doesn't seem to work

var myPath=Shell.getSpecialFolder("internet cache");
myPath+="news.xml";
file=new File(myPath);
file.remove();


Sorry to have posted this twice (in another section)
Reply With Quote
  #2 (permalink)  
Old 05-12-2004, 03:16 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:XML file in cache (how do I get rid of it?)

Do you use the web browser ActiveX control?
Reply With Quote
  #3 (permalink)  
Old 05-13-2004, 06:42 AM
Junior Member
 
Join Date: May 2004
Posts: 3
Default Re:XML file in cache (how do I get rid of it?)

I do not use any web browser, the application is standalone.
I use XMLObject.load in the flash movie to get the XML file, does that mean I am using a browser's ActiveX control?

The sollution I haven't tested yet (I will right now) is calling a news.php?differentvariables file which could return my XML file and hope it caches different files for different variables. But still, I'm not gonna be sattisfied with it, I WOULD LIKE TO KNOW HOW CAN I AVOID CACHING .

I would also like to mention that I could write files, delete files and all that from different folders, but I couldn't write/delete files from the Temporary Internet Files folder...

For my next applications I NEED AN ANSWER PLS.

By the way, great program swfkit, I'm using it for about a week and I love its features.
Bye
Reply With Quote
  #4 (permalink)  
Old 05-13-2004, 09:11 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:XML file in cache (how do I get rid of it?)

I found an article at http://javascript.about.com/library/.../aa121001a.htm, it says
"That is until I ran into a feature/bug that only appears in some versions of Flash where Flash appears to cache the results of an XML load."

Can you find the xml file in internet cache? If yes, please add a response header to your php file, just like this

Code:
<?php
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-store, no-cache, must-revalidate");  // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");                          // HTTP/1.0
?>
<?xml version="1.0" ?>
<skipintrobutton text="Skip Intro!">"Skip Intro!"</skipintrobutton>
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:23 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.