1 Reply Latest reply: May 30, 2009 5:19 AM by Ned Murphy RSS

    Removing code from a javascript file-i.e. Photoshop Flash Web Gallery

    peepmonger Community Member

      Hi There, I have a question about the Photoshop Flash Gallery, particularly the flashobject.js file and index.html file.  Whenever I try and open the finished Flash Gallery HTML page, I get a message that says "Please upgrade your Flash player" and "Already have Flash player installed? Click Here."  Is there a way that I can remove that and just have it go to the Flash Gallery?  I notice that it says Flash Player 6 but that is an old version.  I am not very knowledgeable in javascript so any help would be appreciated.

        • 1. Re: Removing code from a javascript file-i.e. Photoshop Flash Web Gallery
          Ned Murphy CommunityMVP

          This would be the least instrusive hack I can find that may get you around the problem.  In the js fle there is a function...

           

          function detectFlash(ver) {
          if (getFlashVersion() >= ver) {
            return true;
          } else {
            return false;
          }
          }

           

          Try changing this function to...

           

          function detectFlash(ver) {
          if (getFlashVersion() >= ver) {
            return true;
          } else {
            return true;
          }
          }

           

          This should eliminate making the text appear.  If not, there's another thing you can try.

           

          A better approach wuld be to use more up to date embedding code, though I cannot say whether the js file is written specifically for this Flash application such that it includes code that talks to the Flash file.