ActionScript 2.0 :: How To Prevent SWF Caching
Aug 29, 2010
I've been searching on google and through forums for hours now trying to find a way to prevent my site from cache in browsers. I know it's not possible to "prevent" it from caching, but it's a way to trick the browser into thinking it needs to load the SWF again instead of just getting the one from the cache.
Now I've tried many types but I can't get it to work. I don't understand how to implement it into AS or Javascript and what goes where..
My site is set up by one parent SWF combined with a HTML script and 6 child SWF's, and they are updating all the time so I really need this function.
See it here: [URL]
The most used one is this I think or something close:
myIdentifier=Math.round(Math.random()*10000);
loadMovie("myAnim.swf?uniq="+myIdentifier,1);
But how do I use it? where it goes and will it work on several child SWF's?
View 4 Replies
Similar Posts:
Aug 29, 2010
I've been searching on google and through forums for hours now trying to find a way to prevent my site from cache in browsers. I know it's not possible to "prevent" it from caching, but it's a way to trick the browser into thinking it needs to load the SWF again instead of just getting the one from the cache.Now I've tried many types but I can't get it to work. I don't understand how to implement it into AS or Javascript and what goes where.My site is set up by one parent SWF combined with a HTML script and 6 child SWF's, and they are updating all the time so I really need this function.The most used one is this I think or something close:
View 5 Replies
Sep 18, 2008
I have to load png images into flash, such that, whenever they change on server, the change should be reflected on client! But the swf loads the same image over and over during the same session! I am guessing this is because the browser returns the cached image instead of the original! how to fix this?
View 9 Replies
Sep 14, 2008
I periodically upload a revised main.swf. But I have torestart my browser when I retrieve the files from the remoteserver, in order to see my updated swf. The advice given on:"How to prevent caching of swf files"does nothing, in IE FF or Safari, with FlashPlayer v 9
View 20 Replies
Feb 10, 2011
After changing domain name where flash application being hosted I should change crossdomain.xml file. That crossdomain.xml is hosted on api-server, which is used by flash application. I see that flash uses crossdomain.xml from browser's cache. Is there any trick to make flash to not get crossdomain.xml from cache? Maybe there is any parameter, that I can pass to flash during it's call in object tag?
View 4 Replies
Nov 22, 2005
How to prevent caching of swf files?Have somebody any link on tutorial.I read this page hurl...but | know is it possibilitity to generate somehow every time a new SWF name.
View 12 Replies
Jan 27, 2009
When Im loading an xml document, it's as if flash caches this document, and uses that cached version all the way (disregarding how many times I open and close the app) ... well, that's so until I open the xml file inside the browser (IE) and ctrl-F5 to refresh; that's when flash starts getting the updated xml. What's up with that? Is there a way to prevent flash from caching??
View 2 Replies
Aug 5, 2011
How do I prevent Flash from caching loaded images?In my app a user make a change to an image and saves it back to the server as the same name. Flash then reloads the section and the new image should be reflected. However, it is not. The image looks fine on the server and is updated on the server...
View 4 Replies
Sep 15, 2010
How do I prevent Flash from caching loaded images?
In my app a user make a change to an image and saves it back to the server as the same name. Flash then reloads the section and the new image should be reflected. However, it is not. The image looks fine on the server and is updated on the server...
View 3 Replies
Jul 1, 2009
I'm writing a flex application that polls an xml file on the server to check for updated data every few seconds, and I'm having trouble preventing it from caching the data and failing to respond to it being updated.
I've attempted to set headers using the IIS control panel to use the following, without any luck:
CacheControl: no-cache
Pragma: no-cache
I've also attempted adding a random HTTP GET parameter to the end of the request URL, but that seems like it's stripped off by the HttpService class before the request is made. Here's the code to implement it:
http.url = "test.xml?time=" + new Date().getMilliseconds();
And here's the debug log that makes me think it failed:
(mx.messaging.messages::HTTPRequestMessage)#0
body = (Object)#1
clientId = (null)
[Code].....
View 2 Replies
Dec 8, 2005
I made a gallery with an XML file but the problem is that after viewing it on the web and modifying the XML I don't see any difference...it's like I never even modified it...I'm guessing it's because the browser reads the XML file from the cache...how can I make the flash movie read the XML from the web every time it loads?
View 4 Replies
Dec 30, 2009
I have this PHP page that lists several people. When someone clicks on one of the people they are sent to another PHP page that has their video greeting in a .swf embedded into the page. This works by the php writing the path to the greeting video to the xml file that the .swf loads and plays.
Well in firefox it works perfect, but in IE when they try to click on another greeting the original greeting still plays. Its like the swf is caching the first greeting and refresh of the page does nothing to alleviate this. Is this a problem with the swf caching? or XML caching? or am I totally clueless?
[Code]...
View 1 Replies
Aug 4, 2011
I have searched all over and have yet to find an answer to this. Does anyone know of a way to clear an FLV from the player's cache? I saw suggestions to add a query string to the end of the FLV location, but this causes the video to not play.
View 4 Replies
Jul 21, 2011
Is there way force the browser to retain previously viewed FLV files? I've noticed using the normal netstream set-up that even if you've fully loaded and viewed a video it will have to load it again from scratch each time you come back to it. Shouldn't the file be in the user's cache?
View 1 Replies
Dec 14, 2009
In Flash what would be wiser? To use a PNG or import the vector and cache it as bitmap?
View 1 Replies
Dec 24, 2010
I have a flash application and I want my users not to be able to do caching in their flash players.I couldn't find the code that disables the option of caching for them.Does anyone have the line I need to add (and where) which will disable the flash caching?
View 1 Replies
Feb 20, 2010
How do I stop the remote server caching the previous version of a .swf?When I upload a new version to the remote server, the old version still runs.
I don't have this problem on my local server
View 1 Replies
Feb 2, 2007
I need a way to stop XML files from caching. I have tried the xmlfile.load(file.xml?uniq=somerandomnumber) method, and it doesn't seem to be curing the problem. I understand that this can be stopped with PHP, however, I cannot use PHP for this task.XML caching is not a problem locally, only online, from the browsers, I cannot use any browser addons either as this file will be displayed to a vast audience and I can't expect anyone to;
a) get an add on
b) clear their cache everytime they want to see the file.
View 4 Replies
Dec 3, 2007
[code]the problem is my xml file is a variable being passed from the html, so I was wondering how to write this without the inverted commas?[code]
View 2 Replies
Jan 28, 2009
I am using e4x/as3 - Embedded XML in .as file - not caching?
View 5 Replies
Oct 12, 2009
I am doing a flash that getting images from Database. Here is my problem, if I dont close my flash, Whenever I update the images in Database, flash doesnt update the image at the same time. (if I have the image at frame 1, then i go to frame 2, then i update Database, now i go back to frame 1 again, the image is not updated.) It seems like the Loader is caching the image. How can I update my image? Anybody knows why?
View 5 Replies
Aug 24, 2010
i have this code:
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="cache-control" content="no-cahce">
[code].....
View 2 Replies
Sep 30, 2009
Just to warn everyone using Windows 7 that in some cases Flash uses code that seems to be cached. At a certain point in time I knew my code was OK, but still it did not work correctly. I started looking at my trace results and suddenly discovered that it outputted code that was not in my sourcefile anymore.
To solve it, I renamed all AS files and then everything worked fine again.
View 2 Replies
Nov 9, 2009
I have a flv file that is being played and then after its finished another file with the same name has been recorded the problem is that when the new file is played if the browser window hasn't been closed then the old file gets played......How do I stop the browser from cacheing .flv??
View 2 Replies
Aug 21, 2009
I've created a Flex application and the size of the swf file is ~900KB. My trouble is that the files are not getting cached. When I launch the application for the second time, the swf file is fetched again from the server. I'm including the swf file in a jsp, and I'm not modifying any HTTP Caching Headers. I assumed that the swf files will be cached automatically. Isn't it so? How do I forcefully cache the file? Do I need to provide anything in the MXML code or just a response.setHeader("Cache-Control","max-age=100"); is enough? Can anything be done from the flex side itself?
View 2 Replies
May 7, 2010
i pass text strings from a configuration file into my Flex app, one of the strings i pass in is a mailto link which i use to allow users of my app to send me feedback. I recently needed to change this link however when i updated the link in my config file the change did not happen instantly in my Flex app. In fact i had to clear my cache (both browser and flash player) before the change showed up. This of course is fine for me but how can i be sure that users of the application also get the updated content? Is there a way to force a refresh of data loaded into my swf on other users browsers?
Finally is this an issue with my browser cache or the Flash player cache? Does the flash player only keep such data, like my email address, in memory while the app is in use and then clear once it is closed or does it cache this data for the next time the user wants to use the app?
View 1 Replies
Oct 27, 2010
I have updated the crossdomain.xml security settings for my site - but it seems that the older version is being cached in both IE and Chrome.I've checked the headers sent by the server and it's not sending any cache control headers that would be forcing the browsers to be caching crossdomain.xml.
In an attempt to get around the issue I've also linked to my crossdomain.xml file in an iframe on the site. This hasn't worked though and flash still seems to be using the old security settings.
View 2 Replies
May 3, 2011
I would like to create some AMF files for caching on a server.
I am wondering if the best approach is to reconfigure BlazeDS to create these files so it spits out local files?
Or if is possible to use as3 itself to create the files.
View 1 Replies
Jul 8, 2011
I have a .swf in my rails application, located here:
/public/bin/editor/Editor.swf
It works fine, with one flaw, it gets cached often, so when we release a new version we are usually needing to tell the customers to clear their cache when they experience issues. My question is, how could I force the .swf to break cache when I release a new version? Something like:
/public/bin/editor/Editor.swf?timestamp=124158512132
I tried the above, but it did not seem to work.
View 2 Replies
Jul 13, 2011
working on a project with a custom flv player.Everything works as it should However, the flv's don't seem to be caching, if I play the video once, close the player, and replay again, the video has to cache -load entirely again before the video starts playing.
View 1 Replies