A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: Cache and .swf file issue

  1. #1
    Senior Member
    Join Date
    Sep 2002
    Location
    Clogland
    Posts
    100

    Cache and .swf file issue

    **********//////// As usual 10 minutes after posting a question on the forum the I find the answer..........

    "loadMovieNum" instead of "loadMovie" seems to work, when using the variable.

    Don't no why yet, so any comments appreciated.////////************






    I am building an image intensive website, to cut download time I have split the movie, and am using the "loadmovie" function to access the seperate sections of the site.

    The problem I am having is that when I upload the movie to the server the .swf files are getting cached, I have a suspicion that that may even be happening on the server. This is preventing me from updating the various sections of the movie.

    To prevent the caching I'm trying to place a random variable on in this manner.....

    on(release){
    rn = Math.round(Math.random()*1000000);

    loadMovie("new_movie.swf?="+rn,0); // doesn't work

    //loadMovie("new_movie.swf?=3",0); // works (not random though)
    }

    Am I going about solving this problem the right way? and if so, can anyone tell me where my code is faulty?

    T.I.A.
    Last edited by skalie; 05-11-2003 at 06:00 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center