|
|||
|
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) |
|
|||
|
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 |
|
|||
|
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>
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|