6 Replies Latest reply on Dec 4, 2006 11:30 AM by jonnybennett

    flash bandwidth

    jonnybennett Level 1
      I have a user based site. If the users types in
      that persons profile will appear in the embedded profile.swf. Using php this swf extracts the username from the url and loads the relevant data.

      If they click on another persons profile from within their profile a new window will open with this persons profile.

      However what I don't want is for each time a new window is opened for the profile.swf to be redownloaded... as this is a waste of my bandwidth and the users time. I do however want the new profile to be opened in a new window.

      Does a computer automatically know that it is trying download something that it has already downloaded becuase on my tests generally after the first profile.swf has loaded it seems to load the other profile pages in new windows almost instantly? I assume that is beacuase it has profile.swf in the cache memory???, however does the new download still take place? as I don't want to waste bandwidth. thanks in advance to any responders. Jonnie.
        • 1. Re: flash bandwidth
          kglad Adobe Community Professional & MVP
          the new download is not downloaded, at all unless you specifically add code to force a re-download. as you surmised, the file is retrieved from the user's cache and the user re-views the file.
          • 2. Re: flash bandwidth
            jonnybennett Level 1
            that's perfect. thanks kglad.
            So it will just open a new window, use the old 'profile.swf' but it will be populated with diff info becuase the php will be sending diff details. Just didn't want to be downloading 300k each time a new window was opened. thanks as always for the resopnse J.
            • 3. Re: flash bandwidth
              kglad Adobe Community Professional & MVP
              if the php is called from profile.swf, then yes, after initial download profiles.swf will be retrieved from the cache.

              however, it may not be populated with different info from php. some browsers will cache loaded data, too. to prevent that append a changing variable/value to your php call.
              • 4. Re: flash bandwidth
                jonnybennett Level 1
                Thanks for the responses...

                Sadly I have tested it again and it is redownloading the swf each time.
                So that you understand fully what I am trying to do if you click on...


                The page will load for user named 'krysula'. If you click the button in the background that says 'testBandwidth', a new window will open and load...


                Although it is using exactly the same swf it is having to redownloaded it, instead of using what it has in memory. The swf is actually 400k in size. could this be preventing it from reading it from the cache?
                • 5. Re: flash bandwidth
                  kglad Adobe Community Professional & MVP
                  yes, those do not appear to be the same php files to your browser. you're appending a variable/value to you php call that's different when you use user=krysula and user=katharine.

                  to remedy, link to the swf and have the swf call your php file.
                  • 6. Re: flash bandwidth
                    jonnybennett Level 1
                    Im not too sure how I am going to be able to do that, as there are quite a few other factors I need to take into consideration.

                    Anyway, im sure it will be resolvable!
                    At the moment im not ready to fully test this problem, however I will obviously have to return to it. Therefore Ill leave the thread open and return to it later.

                    Thanks kglad for your help up to this point. J