SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Feb 2005
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question temporarily storing swf

    Hi All,

    I have a flash swf file which has a number of help buttons, clicking these
    buttons will open up another swf file showing help. Help contents are always
    different, but the help.swf is same. But everytime u click a button, swf is
    also getting downloaded along with data (data is separate XML file). I want
    to store(cache) this help.swf locally so that it doesn't get downloaded
    everytime.
    What can be the best way to achieve this??

    Another thing I noticed that my swf files are not getting stored in
    temporary intenet file folder, but I can see various other swfs from sites I
    opened. Can this be part of problem?

    Thanks and Regards

    Kamal

  2. #2
    blonde.... Sarah's Avatar
    Join Date
    Jul 2001
    Location
    Berkshire, UK
    Posts
    7,442
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    moved to correct forum
    Regular user

  3. #3
    SitePoint Wizard bronze trophy JRMillion's Avatar
    Join Date
    Apr 2004
    Location
    Arlington VA
    Posts
    2,094
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    typically swfs are cached locally unless you use a trick to prevent it....

    If you are passing any variables in the string(ie myMovie.swf?name=value) it would prevent caching.
    James Rice :: Ex-Mentor
    www.jamesrice.net

  4. #4
    SitePoint Member
    Join Date
    Feb 2005
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    I tried out a simple test, I created a dummy swf file, abc.swf (it contains only a rectangle). Then created a HTML page for this, using publish from menu. And the put that on server, opened from my local machine… still it is not there in my “temporary internet files” folder. Used this test locally as well, tried using my system as server and opened the page on a friends system… and still no caching. What can be the problem here..??

    Else if u can suggest me a way to store a swf temporarily and running on demand (as my original problem states), that would be great.

    Regards

    Kamal

  5. #5
    SitePoint Member
    Join Date
    Feb 2005
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I was just able to figure out the reason for no caching. I tried the same dummy swf on same server with IIS ie port 80. (Originally I am using tomcat, port 8080) . and this time Iit cached the swf file. It seems that tomcat have some problems with caching....


Bookmarks

Posting Permissions

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