Updating .swf's

January 6th, 2009
  • Ok we have had this problem for a little while and are looking for an answer. We manage a few websites for clients which we have made in Flash 8. The problem is, is that they require updates from time to time and its proving to be a nuisance. Everytime we upload the new .swf to the server it will not re-download the latest version when we send clients to the site. Most of the people complain that they do not see the latest unless they refresh. Is there a way that the site will auto download whenever it has been updated without refreshing? :a:


  • Yea. Im guessing your using a .php so just add something like:

    $v = $HTTP_COOKIE_VARS['version'];
    if($v == "128"){
    $r=0;
    }else{
    setcookie('version', '128', time()+60*60*24*30);
    $r=rand(1, 9999);
    }
    ?>

    then at both do something like:
    value="site.swf?r="
    src="site.swf?r="

    And on the persons computer it just stores a cookie with the version. if its different print a random number if not just print a constant. This requires you to change the version number 128 to something higher whenever you make a new version.

    I'm sure one of your coworkers knows how to impliment this if you dont if not feel free to ask.







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Updating .swf's , Please add it free.