To force the download of the swf, u can use a cache buster technique
below:
loader.load(new UrlRequest("somthing/mySwf.swf?cb="+new Date().getTime
()));
Adding th time at the end of the URL will trick the player to think
that it's a new URL each time forcing if to redownload the file.
On 06/07/2009, at 5:36 AM, Gil Birman <[email protected]> wrote:
* (I am not sure of this one) But I think that the assets loaded
inside an
app at runtime are not cached so they will take the same time the
next time
you load them unlike the embed assets.
The web browser WILL cache SWF's loaded at runtime (from the same
domain). This can pose a problem when you upload a newer version of
the SWF to your server because the user may have the old version
cached. One solution is something like this in the .htaccess file:
# CACHE AGES IN 24 HOURS for specified file types (86400)
# CACHE AGES IN 7 DAYS for specified file types (604800)
<FilesMatch "\.(pdf|swf|js|css|jpg|jpgeg|gif|png|swc|xml|txt)$">
Header set Cache-Control "max-age=86400"
</FilesMatch>
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org