6 Replies Latest reply: Feb 24, 2012 9:32 AM by adninjastrator RSS

    Clearing flash cache by code

    JORGEMAL Community Member

      I am using a Flash Component in our web site to show videos but I need a way to clear flash cache every time the page is loaded. Such a Flash Component configuration is based on an XML file to get the videos that will be played. Is there a way to do it using C# code?

       

      Respectfully,

      Jorge Maldonado

        • 1. Re: Clearing flash cache by code
          kglad MVP

          no, it's done by appending a query string that changes so the browser thinks you're loading a different file each time.

           

          what file do you want to prevent retrieval from cache'ing?

          • 2. Re: Clearing flash cache by code
            JORGEMAL Community Member

            I appreciate your response.These are the file that take part in my flash component, which one should be removed from cache?

            1. vp1.swf2. PlayList.xml3. PlayerSettings.xml

            Regards,Jorge Maldonado

             

            Date: Thu, 23 Feb 2012 18:45:49 -0700

            From: forums@adobe.com

            To: jorgemal1960@hotmail.com

            Subject: Clearing flash cache by code

             

             

             

             

             

             

                  

                       

                       

                       

                Re: Clearing flash cache by code

             

             

                created by kglad in Flash Pro - General - View the full discussion

             

             

             

            no, it's done by appending a query string that changes so the browser thinks you're loading a different file each time. what file do you want to prevent retrieval from cache'ing?

             

             

                 Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4226023#4226023

                 To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4226023#4226023. In the Actions box on the right, click the Stop Email Notifications link.

                  

                 Start a new discussion in Flash Pro - General by email or at Adobe Forums

              For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

            • 3. Re: Clearing flash cache by code
              kglad MVP

              what does you component do and what data does it use?

              • 4. Re: Clearing flash cache by code
                JORGEMAL Community Member

                I did not write the component, I bought it.  You can take a look at it here:

                http://www.flashcomponents.net/component/powerfull-video-player-flv-h-264-mp3-youtube-goog le-analytics-subtitles.html I do not have experience writing flash components, I am focused on C# programming, database design and implementation, and web application development.

                 

                The component is basically a video player that supports playlists and it is configured using 2 XML files: one for general configuration (PlayerSettings.xml) and another for playlists (PlayList.xml). The XML file that I really use is the one to configure playlists because it must change periodically in order to show a different set of videos every week or so. I wonder if this is the information you requested, if not, please let me know. I really appreciate your interest in helping solve my issue.

                Regards,Jorge Maldonado

                 

                 

                Date: Fri, 24 Feb 2012 08:00:57 -0700

                From: forums@adobe.com

                To: jorgemal1960@hotmail.com

                Subject: Clearing flash cache by code

                 

                 

                 

                 

                 

                 

                      

                           

                           

                           

                    Re: Clearing flash cache by code

                 

                 

                    created by kglad in Flash Pro - General - View the full discussion

                 

                 

                 

                what does you component do and what data does it use?

                • 5. Re: Clearing flash cache by code
                  kglad MVP

                  i only download and correct files if i'm hired.

                   

                  from your description it sounds like you just need to load those xml files and not retrieve them from the cache.  if that's the case you'll need to edit the component and append a query string to the xml urls.

                  • 6. Re: Clearing flash cache by code
                    adninjastrator Community Member

                    In the xml config file it most likely names the .xml playlist file. So in the config file is where you most likely do the change... something like:

                    xmlData.load("news_ticker/news_ticker.xml?blarg="+new Date().getTime());

                    For info on this method used in New Tickers.... toward bottom of page:

                    http://www.kirupa.com/developer/mx2004/newsticker2.htm

                    Best wishes,

                    Adninjastrator