To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > Flash Help > Flash General Help

Reply
 
Thread Tools Search this Thread Display Modes
Old 03-04-2005, 02:05 AM   #1
Peeb
Junior Member
 
Join Date: Mar 2005
Posts: 1
SWF Files and Browser Cache

Hi,

I make very simple flash banners for my website announcing updates. I keep the filename the same, so when it's updated, anyone who has my banner on their site does not have to re-arrange their HTML code.

The problem is that when I replace the old SWF file with the new one, my browser keeps the old file in cache. Even a Shift+F5 (forced refresh in Mozilla) does not refresh the SWF file like it does with JPG, PNG and GIF files. This leads me to believe that people int he general public are not always seeing the most recent SWF from my site.

My question is if there is a setting I could place in the actionscript or the embed/object HTML code that would specify whether or not to chache the SWF.

Thanks for helping.

-Mike
Peeb is offline   Reply With Quote
Old 03-04-2005, 02:32 AM   #2
oldnewbie
Banned
 
Join Date: Apr 2001
Location: Montréal, Québec.
Posts: 25,397
Something like... on the url linking to your banner...

...yourbanner.swf?r=' + Math.round(Math.random() * 99999) + '...
oldnewbie is offline   Reply With Quote
Old 08-17-2005, 05:40 PM   #3
hellasweetmusic
Member
 
Join Date: May 2005
Posts: 31
Help with refreshing website code

I tried pluging your code into the movie I have for detecting screen size, but it's not updating any ideas on what's wrong?
Attached Files
File Type: fla index2a.fla (78.5 KB, 8 views)
__________________
Hellasweet
hellasweetmusic is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > Flash Help > Flash General Help

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:12 PM.


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.