A Flash Developer Resource Site

Results 1 to 13 of 13

Thread: [Resolved] [Resolved] Empty the Cache!

  1. #1

    Red face

    How can you empty the cache of a browser either with Flash or with ASP?

    This is causing a real problem in our project because if we reload a .SWF it will not have changed any of the last variables it set but the original ones it loaded the first time.


    Kim

  2. #2
    Senior Member Mad-Sci's Avatar
    Join Date
    Mar 2000
    Posts
    2,756

    Post

    Hay Kimbo I had the same problem you know. FlashKit suggested:
    LoadVariables://stuff.com/variables.dat?&random(1000) which forces the browser to reload. and use LoadVariables commands at least 60s appart. If you come up with trick how to empty the cache ( or cash either one ;-) ) in real time please let me know.
    Mad_sci
    <EMBED src="/cgi-bin/ubb/Members/sigs/00000472.swf" quality=high WIDTH=170 HEIGHT=55 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> </EMBED>

  3. #3
    Junior Member
    Join Date
    Mar 2000
    Posts
    19

    Post

    I am not sure if this line in the head of your HTML document will solve your problem for you or not. I am assuming that this probably will help.

    <meta NAME-equiv="Pragma" CONTENT="no-cache">

  4. #4
    Junior Member
    Join Date
    Mar 2000
    Posts
    19

    Post

    <meta NAME-equiv="Pragma" CONTENT="no-cache">

  5. #5
    Junior Member
    Join Date
    Mar 2000
    Posts
    19

    Post

    //<meta NAME-equiv="Pragma" CONTENT="no-cache">

  6. #6
    Junior Member
    Join Date
    Mar 2000
    Posts
    19

    Post

    I cannot type the tag in, as you can see, so I will "speak" it to you:
    open carot meta name minus eqiv equals quote Pragma quote content equals no minus cache quote close carot

    I hope that you understand what I just typed
    /*<meta NAME-equiv="Pragma" CONTENT="no-cache">*/

  7. #7
    Junior Member
    Join Date
    Mar 2000
    Posts
    19

    Post

    meta NAME-equiv="Pragma" CONTENT="no-cache"
    don't forget the < and > at the end

  8. #8
    Senior Member Mad-Sci's Avatar
    Join Date
    Mar 2000
    Posts
    2,756

    Post

    Yep very cool, how can learn about this trick please explain. Or if you have a link whith the metas.

    <EMBED src="/cgi-bin/ubb/Members/sigs/00000472.swf" quality=high WIDTH=170 HEIGHT=55 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> </EMBED>

  9. #9

    Post

    We've tried but to no avail. If it really works please give more info,

    Best regards,

    Kim

  10. #10
    Senior Member Mad-Sci's Avatar
    Join Date
    Mar 2000
    Posts
    2,756

    Post

    Well this was my problem a time ago:
    I made a flash hit counter which i wanted to update in real time you know those Java based counters. The problam was that I had no way to reload the variables. so I tryed the first sol. browser refresh and now I tryed the Meta stuff. both of them worked. Just paste the meta tag udnder the head tag. And you are done. A another thing is that you have to keep LoadVariables commands at least 30-60s appart. Hope this works.
    Mad-Sci
    <EMBED src="/cgi-bin/ubb/Members/sigs/00000472.swf" quality=high WIDTH=170 HEIGHT=55 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> </EMBED>

  11. #11
    Member
    Join Date
    Feb 2000
    Posts
    30

    Wink

    you dont have to space out your refreshes...

    make your asp,cgi or txt return a value called &loaded=1

    In flash just before flash requests the asp add a set var loaded=0

    so when the data has been sucsessfully loaded into flash we now have a var inside flash called loaded=1 all you need to do now is do a loop and keep on testing if loaded=1, if it isnt then just keep trying else go and do another refresh.

    This is a way to make a 100% reliable refresher. all my flash and asp files on www.dream-nation.com/dev4 use this trick,

    Hope this helps,


    John Harding
    <EMBED src="/cgi-bin/ubb/Members/sigs/00000043.swf" quality=high WIDTH=400 HEIGHT=60 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> </EMBED>

  12. #12

    Cool

    My ASP guy as figured out that this following code in ASP works very well:

    response.expires = 0

    One day, I promess, I will be able to write that damn language!

    Kim

  13. #13
    Senior Member Mad-Sci's Avatar
    Join Date
    Mar 2000
    Posts
    2,756

    Post

    Kimbo how can I use this I need something like this but I have no idea what ASP is and how to use it.
    mad-sci
    <EMBED src="/cgi-bin/ubb/Members/sigs/00000472.swf" quality=high WIDTH=170 HEIGHT=55 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> </EMBED>

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