3 Replies Latest reply on May 15, 2006 6:53 PM by Newsgroup_User

    Running a .EXE off a CD

      I'm trying to call .PDF files stored locally on a CD from my Flash projector. Using a 'VIEW' button, I want to launch Acrobat Reader and open a pdf from the CD.

      How is this done?
        • 1. Re: Running a .EXE off a CD
          Level 7
          one simple way is to use mProjector to create your flash app - it adds
          and openDocument function into AS and also an executeApplication..

          http://www.screentime.com/software/mprojector/docs/mSys_openDocument.htm

          > I'm trying to call .PDF files stored locally on a CD from my Flash
          > projector. Using a 'VIEW' button, I want to launch Acrobat Reader and
          > open a pdf from the CD.
          >
          > How is this done?


          --
          John Pattenden
          Screentime Media
          Flash Screen Saver, Application and Wallpaper tools
          http://www.screentime.com

          • 2. Re: Running a .EXE off a CD
            Level 7
            Also try FlashJester JStart

            http://jstart.flashjester.com

            Download a FREE evaluation copy and look at the example files given.

            Regards
            FlashJester Support Team
            e. - support@flashjester.com
            w. - http://www.flashjester.com

            There is a very fine line between "hobby" and
            "mental illness."


            • 3. Re: Running a .EXE off a CD
              Level 7

              Now that you've heard from the "buy my product too" sheep, here's a
              FREE solution you can try

              Check out the original thread from FlashKit (link below) to find a
              link to the ZIP file with the examples that the post below talks
              about.

              http://board.flashkit.com/board/showthread.php?t=674688&highlight=pdf+topmost

              Here's a BAT file that will make sure the Acrobat Reader is made the
              topmost application after your PDF file is opened. It uses a BAT file
              for loop to repeatedly call topmost so the PDF has time to load. In
              the BAT file in the ZIP file I attached there are a lot more X's which
              translates into a better chance of topmost working.

              ----- code ----
              start test.pdf
              set repeat=x x x x x x x x x x x x x x x x x x x x x
              for %%i in (%repeat%) do call topmost Adobe
              ----- /code -----

              In the ZIP file I also included a file called test.exe which is a
              renamed copy of my PROXY utility to hide the ugly DOS box that appears
              when you run a BAT file.

              Put everything in the ZIP file in the fscommand folder, then if you
              want to just run the BAT file you can just add fscommand("exec",
              "test.bat"); to your FLA.

              If you use fscommand("exec", "test.exe"); you'll be using the proxy
              utility to launch the BAT file indirectly. What this does is hide the
              DOS box that appears when you run a BAT file.

              If you want to open other PDF files, just make copies of TEST.BAT and
              TEST.EXE and rename them to say MYFILE.BAT and MYFILE.EXE and edit
              MYFILE.BAT to open the correct PDF file. Then use fscommand("exec",
              "myfile.exe") to open the PDF.

              You'll need a BAT and EXE file for each PDF file you want to open.

              Tim Goss
              Northcode Inc.
              http://www.northcode.com