3 Replies Latest reply on Oct 27, 2006 6:57 AM by ngirard

    fscommand

      I'm using fscommand.exec to open Acrobat directly from the CD, but I'm not having any luck. Here is my code...

      Button:
      on (release) {
      fscommand.exec("\\Acrobat 7.0\Reader\AcroRd32.exe", true);
      }
        • 1. Re: fscommand
          Level 7
          JP.Harron,

          > I'm using fscommand.exec to open Acrobat directly from the
          > CD, but I'm not having any luck. Here is my code...
          >
          > Button:
          > on (release) {
          > fscommand.exec("\\Acrobat 7.0\Reader\AcroRd32.exe", true);
          > }

          From the docs: "The exec command can contain only the characters A-Z,
          a-z, 0-9, period (.), and underscore (_). The exec command runs in the
          subdirectory fscommand only. In other words, if you use the exec command to
          call an application, the application must reside in a subdirectory named
          fscommand. The exec command works only from within a Flash projector file."

          If we take the first sentence literally, your backslashes are illegal
          characters. Either that's an oversight on the part of the documentation
          writer(s) or subfolders aren't allowed. In any case, there must be a
          subfolder "fscommand" in the mix, and the app to launch must be inside that
          folder.


          David
          stiller (at) quip (dot) net
          Dev essays: http://www.quip.net/blog/
          "Luck is the residue of good design."


          • 2. Re: fscommand
            Level 7
            Hi,

            Why don't you just specify the pdf file using JStart and it will
            automatically open up the pdf file.

            Take a look here and download a free evaluation copy

            http;//jstart.flashjester.com

            Good Luck

            p.s to executre an exe it must be in a sub directory called fscommand read
            this.

            http://www.flashjester.com/?section=faq&cPath=28_41#202

            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: fscommand
              ngirard
              I have been having the same problem trying to launch a PDF from the flash projector. I am on a mac, so it seems I am out of luck when it comes to using Jstart.

              My questions are:
              1. Is there a way to launch PDF, Word, etc from a projector WITHOUT using 3rd party software?

              2. When creating a hybrid CD/DVD, are there different methods for both platforms for launching PDF and Word documents?

              3. What is the EXACT syntax used for fscommand? I have found at least 3 different variations, and experimenting with all has gotten me nowhere. For example, forward or backslashes? Slashes or colons? Absolute paths or relative?

              4. Is it, or is it NOT necessary to include the external applications (PDF, Word, etc) on your CD/DVD?

              I have been searching forums/google and have found nothing helpful. Feel free to email - nichole@synkotic.com

              Looking forward to some help. Thanks!