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


Similar Posts:


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

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

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 :: 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

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.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 - 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

IDE :: Flash Caching An Image?

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

ActionScript 1/2 :: Flash Caching On Windows 7?

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

Flash :: Flex 3 And Player Caching?

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

Flash Seems To Be Caching Crossdomain.xml File?

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

Flash :: Creating AMF Files For Caching?

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

Flash :: Handle Manual .swf Caching?

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

As3 :: Flash - How To Disable Image Caching

Aug 12, 2011

I have a web application developped using as3. The problem is that these application loads some image files, and add my watermark to them.What is happening is that these images are being cached by the browser, allowing the users who know how to access the tmp folder, to get these files, without my watermark.Adding the watermark previously to the image, is not an alternative for me, due the fact that when the a premium user is logged in the watermark is not added.How can I disable the caching?

View 3 Replies

Flash :: Caching Flv Data In Flex?

Sep 9, 2011

I am developing an eLearning application in Flex which shows flv movies hosted on a webserver. If the app has many simultaneous users the download demand is quite high because a lot of users need to download the (same) movie(s). Is there a way I can precache this data in my flex client like storing it in the browsercache or something so that for later sessions the bandwidth demand is less high?

View 1 Replies

ActionScript 3.0 :: Flash Caching An Image?

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?

View 3 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

IDE :: Preventing Flash Player Caching

Sep 8, 2009

edit: Resolved; my ActionScript function for parsing the mySQL results didn't correctly interpret a recently modified column, and the corrupted new output happened to be identical to the old output.

I have created an application that accesses a PHP/mySQL database, but it caches old information.

I used the workaround from Adobe's website, where I append '+ new Date().getTime()' to the URLRequest String, but the application continues to use the old data.

When I trace the URLRequest String and C&P it into a browser window, however, I receive the correct data.

View 2 Replies

Professional :: Loading/Caching Flash Movies?

Feb 6, 2010

Using Actionscript 2, I'm a bit new to all the scripting stuff.I have a loader loading a couple of flash movies like this:loadMovieNum("sound.swf", 1);loadMovieNum("logo.swf", 2);loadMovieNum("mainmenus.swf", 3);Those 3 movies I need to go to the main section of the site. However, I would like the loader to also load the remaining movies needed to further navigate the site, but without displaying them now  Kind of like 'caching' the rest of the site, so when the access is needed, there's no load time.

View 9 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

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

ActionScript 2.0 :: Stop Caching Of Files Loaded By Flash?

Nov 21, 2004

When not cacheing an HTML page, any movies or anything you load INTO that flash file through loadMovie or loadVars still gets cached... I use senoculars script to prevent this...

[URL]

and 2) Yes you can stop the cacheing of your page...

[URL]

Use this information wisely my friend

i came across this post by lostinbeta to stop cacheing, but the link for the one to stop cacheing files loaded through loadMovie and loadVars doesn't work. know how to get to it, or what the as was?

View 1 Replies

ActionScript :: Flash - Bitmap Caching Vs Image Asset Performance

Mar 14, 2011

i've created a full spectrum color wheel Sprite object that is composed of 1440 vector triangles, or slices if you will. since i want to animate the color wheel, i've activated the display object's cacheAsBitmap property. however, caching the vector as a bitmap does not increase performance during animation it remains slow, jumpy. importing a PNG screenshot of the color wheel into the library with lossless compression, converting it to a Sprite, and rotating this new image asset performs great during animation. why does an uncompressed PNG image asset import out perform the same vector image with cacheAsBitmap property set to true?

View 1 Replies

Professional :: Stop Caching URLLoader Accesses In Flash Development Environment?

Feb 25, 2010

I'm loading an external XML file when in the Flash development environment. ActionScript 3.0 (CS3) accesses the XML file using URLLoader. Everything is fine until I have to make changes to the XML file. When testing the Flash application while in the development environment, it does not see the changes I made to the XML file, because the URLLoader is somehow caching the results. Thus, the XML file looks exactly the same. This is very frustrating. Is there any way I can blow out this cache so that URLLoader is forced to load the XML file? Currently, I either have to re-start the Flash environment or change the name of the XML file.

View 7 Replies

Caching - Clearing Server Cache So That Flash Gallery Will Update Itself With New Images?

Jun 25, 2011

I have a website [URL] there is a flash gallery, every time I have to clear magento cache and browser cache to display my new images but now I've made few changes in swf file that before the smaller bars are not left aligned now there are both. In my local system the new swf file shows exact number of images in the smaller bars but in server they are not showing in full numbers.

I don't know what to do as I've cleared every cache that I can. I've read some where that put version number in your swf file so that brower can check if its new then it will download new but in magento how to do that. As the swf file contents are in cms pages home page content and they have done as :

<script src="{{skin url='js/flashobject.js'}}" type="text/javascript"></script>
<div id="flashcontent"
class="a-center"><a
href="http://www.adobe.com/go/EN_US-H-GET-FLASH">

[code]...

how to version the swf file and how to clear cache.

View 1 Replies

Flex :: Make A Flash Browser App That Could Receive Data From Browser Plugin Or Other Windows App?

Dec 18, 2009

in other words, suppose I want to send data, like text, programmatically from a Windows app (such as a browser plugin) to a Flash app running in the browser. Well, conceptually, an example of this might be a Flash instant messenger with a textbox and button "Send"; so let's say I want to be able to programmatically paste the text and press Send or otherwise activate it. That's NOT what I am trying to do here in reality (i.e., no,I am not trying to spam other people's chat rooms or anything)but just an illustration of a similar situation.I can include in it whatever widget or hack that may be necessary.The reason why this problem is arising for me is that AFAIK the SDK that is providing me the data I want cannot be directly accessed from Flash, so I need a way to pipe the data from a regular app into Flash. can I have the Flash app interact with other apps through localhost IP? Or are there draconian restrictions on which server Flash in browser can and cannot interact?

View 1 Replies







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