• home
  • forum
  • my
  • kt
  • download
  • Cache Problem in Flash

    Author: 2007-06-06 16:09:49 From:

    When Flash movie is loaded, cache of your browser filled with that flash movie. Problem may occur if you want to update it because flash automatically looks for movie already in the cache. If it¡¯s found, simply will show you the movie without update i.e old version of that swf.

    In order to avoid it use the following code:

    myVar =Math.round(Math.random()*10000);
    loadMovie("mymovie.swf?uniq="+myVar,1);

    Here, myVar is simply a variable which occupies random number that will be generated by
    random() .

    Download Full Source.

    Have Fun.

    discuss this topic to forum

    relation tutorial

    No information

    Category

      3D (36)
      Math Physics (18)
      3rd Party (10)
      Navigation (70)
      Actionscripting (228)
      Optimization (17)
      Animation (166)
      Projector (11)
      Audio (54)
      Special Effects (170)
      Backend (26)
      Text Effects (92)
      Drawing (34)
      Tips and Techniques (58)
      Dynamic Content (38)
      Tricks (8)
      Games (114)
      Utilities (24)
      Getting Started (99)
      Video (59)
      Interactivity (48)
      Web Design (37)

    New

    Hot