ActionScript 3.0 :: Prevent Browser Caching?

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


Similar Posts:


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

Professional :: Prevent SWF From 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.The most used one is this I think or something close:

View 5 Replies

ActionScript 3.0 :: Prevent Caching Of Images?

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

Html :: Crossdomain.xml Prevent Caching?

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

ActionScript 2.0 :: How To Prevent Caching Of Swf Files

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

ActionScript 3.0 :: Possible To Prevent Flash From Caching?

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

ActionScript 3.0 :: Prevent Caching Of Loaded Images?

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

ActionScript 3.0 :: Prevent Flash From Caching Loaded Images?

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

Flex :: Http - Prevent From Caching An External Resource

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

ActionScript 2.0 :: Prevent A Flash Movie From Caching A XML File?

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

Javascript :: Disable IE9 Browser Caching?

Oct 3, 2011

I have a Flash application that sends a getURL request for an image file every 60 seconds.

This works fine in all browsers except IE9 with Internet Option set to automatically check for newer versions of stored pages. I setup Charles proxy (http://xk72.com) to watch the requests being sent by my flash app and confirmed that the request is being surpressed by IE9 when the setting is set to Auto, but works fine if I change the setting to check everytime I visit the webpage. This, however, is not an option! I need this to work in all browsers regardless of how the options are set.

Even if I do a page refresh (F5), the ASP page does not reload. The only way to get it to reload is close the browser and restart it.

I have tried adding content headers to disable caching but it does not appear to work.

For Example, here is my request headers:

HTTP/1.1 200 OK
Date Sun, 02 Oct 2011 23:58:31 GMT
Server Microsoft-IIS/6.0
X-Powered-By ASP.NET
Expires Tue, 09 Nov 2010 14:59:39 GMT
Cache-control no-cache
max-age 0
Content-Length 9691
Content-Type text/html
Set-Cookie ASPSESSIONIDACQBSACA=ECJPCLHADMFBDLCBHLJFPBPH; path=/
Cache-control private


I have read the Microsoft blog (http://blogs.msdn.com/b/ie/archive/2010/07/14/caching-improvements-in-internet-explorer-9.aspx) which states that if I add the content headers, the browser should respect my request, but it obviously does not.

I don't think this is a Flash issue since the html page that holds the Flash object will not even reload.

View 1 Replies

ActionScript 3.0 :: Browser Caching In Flash

Oct 21, 2010

I have a Flash file that is linked to 14 xml files using the E4X method. To keep the network activity to a minimum, I have it set up so that the xml files don't load until the relevant button is clicked (rather than have them all load at the beginning). I've been told I could further reduce network activity by using something called browser caching. There seem to be methods called "conditional HTTP" and "304 caching" but I can't really find a coherent tutorial on how to add this to the code.

View 5 Replies

ActionScript 3.0 :: Class To Checking Browser Caching?

May 31, 2010

Is there a way to check if the user has my site cached so it can tell my preloader not to run?Or is there an easier way to check this? I have a preloader, but once it hits 100% it makes a mess. It's not all that appealing. It works if you see it loading, but just to see the mess at the end is not aesthetically pleasing.Is there a way to have the Flash movie say, "Oh. You've already got this loaded? Skip animation." ?

View 5 Replies

Flex :: Enable The Caching Also When I Open It In The Browser?

Jul 8, 2009

I have the following problem, I have a flex application that works as a frontend in a client-server-application. In my application I have two sliders and a chart that moves when I drag the sliders, now when I have the following positions

slider 1: 10
slider 2: 20

a request is sent to the server and the response back to my flash. When I now change the sliders to

slider 1: 10
slider 2: 30

another request is sent to the server, because we have changed the position of slider 2. When I now turn the sliders again to the first position.

slider 1: 10
slider 2: 20

no request is sent to the server and the chart is moved correctly because the flash seems to know what he will receive, I think the application has cached the result. This effect only works when I open the flash application in the flash player. When I open it in the browser every slider position leeds to another request to the server. Is there a way to enable the caching also when I open it in the browser?

View 1 Replies

Flash :: Child SWF Is Caching Even Though Browser Cache Is Disabled

Dec 17, 2010

I've got a parent SWF that loads in a couple child SWFs. Even though my browser cache is cleared -- it's disabled, in fact -- reloading, or even restarting, the browser doesn't trigger the newest version of the child SWFs to load into the parent SWF. I can even delete the SWF off the FTP server, and it still gives me the last version that was up there.

What's caching the child SWFs, and how do I force them to refresh on my end? I'm not too concerned about the end user, because once the site development is over, the SWF files won't change very often. (They're all loading in XML files that have the cache disabled via PHP cache control and expires headers.)

I'm primarily using Firefox on PC and Mac, but it seems to do the same thing on IE/PC and Safari/Mac. The PC is using my ISP's DNS, and the Mac is using OpenDNS... not sure if that has anything to do with it. The site is hosted on Rackspace Cloud.

View 1 Replies

ActionScript 3.0 :: Flash - Stop The Browser Caching The Old Version?

Oct 28, 2010

I put a swf file on a website, then I made some changes and replace the old version. However, some browsers seem to have some kind of cache to remember the last swf file, they only show the old version instead of the new one. What can I do to stop the browser caching the old version?

View 9 Replies

Javascript :: Manually Caching SWF/SWC In The Browser - Mimic Adobe's Signed SWZ?

Nov 14, 2009

I would like to take advantage of Adobe's Runtime Shared Library system for swc's, but I'm not sure how it ACTUALLY works, like the programming behind it. I understand that it allows you to load SWCs at runtime, but how does it do that?

I'm asking because I would like to try to mimic something like the Signed RSL "swz" system Adobe uses to cache the Flex Framework into the Flash Player, so if you ever visit a site that downloads the Flex framework for some flash website, then the next time, and forevermore, you don't have to download it again.

I can't do this because I'm using my own version of the Flex SDK from the Sandbox, and I have like 5 other swc's I'm using (Mate, RestfulX, etc.). I would like to be able to cache these things permanently, and only have them re-download them if they change.

How do I do that, or what should I read, other than the Adobe RSL docs and such? Can I use javascript or ruby to do this?

View 2 Replies

Actionscript 3 :: Prevent Flash From Scaling / Resizing Content In A Web Browser?

Jul 29, 2011

I have finished my flash game, but when I used web Browser such as Chrome or FireFox to run it, it enlarged my game to full size of the browser. Is there anyway( in AS3 script) that I could prevent this from happening as well as hide the symbols that their sizes are bigger than my default size defined at the document property panel?

View 1 Replies

Actionscript 3 :: Prevent The Browser From Killing The Flash Plugin While Debugging?

Nov 25, 2011

When I am debugging broken code, after a while the browser announces that the Flash plugin has crashed, and I can't continue debugging my code. Can I prevent the browser from killing Flash?

View 3 Replies

ActionScript 2.0 :: Prevent Auto-resizing Of Font When Browser Made Full-screen?

Jun 23, 2010

How do you prevent all of your text automatically changing the font size when a browser is made full screen? I have a number of fixed field sizes I want my text to stay within but when the browser is expanded to full screen it changes the fonts so the text no longer fits in the text boxes and it forces scrolling.

View 2 Replies

Professional :: Prevent User Open / Play Flash Game On Multiple Browser Windows At One Time?

Mar 12, 2012

I made a game as the same site URL..Anyone knows how to prevent user open and play game on multiple browser windows at a time?I used flash control to embed flash into aspx page and connect to sql server

View 4 Replies

ActionScript 3.0 :: Click On Another Greeting The Original Greeting Still Plays In Ie - Swf Caching Or XML Caching?

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

Flash :: Prevent SCORM Terminate() To Refresh Browser When Using Adl.nav.request(target="")?

Jun 21, 2011

I have got a flex app that communicates with a Scorm-API.When i run a javascript function from flex with "adl.nav.request" , i have to make a terminate function to make it happen which unloads the whole system,becouse this function updateds an "imsmanifest.xml" file. This xml is updated this time. This xml contains all the items that are connected to the index.hml which runs the flex app. That is why its refreshes. But i don't want my flex application to restart too.

View 2 Replies

ActionScript 3.0 :: FLVPlayback Caching?

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

Any Way To Force Caching Of FLV Files?

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

Flash - Bitmap Caching Or Using PNG?

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

Disable Flash Caching?

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

ActionScript 2.0 :: Caching On The Server?

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

ActionScript 2.0 :: F8 Stop XML Caching?

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







Copyrights 2005-15 www.BigResource.com, All rights reserved