1 Reply Latest reply on Dec 12, 2006 3:49 PM by Newsgroup_User

    fscommand() to open a pdf from cd folder...

    Ricky2k7
      hi,
      need to open a pdf thats inside a cd:
      but this doesn't work!?
      on (release)
      {
      fscommand("exec", "DOWNLOADS\Elefante.pdf");
      }
      the DOWNLOAD folder is on the CD root
        • 1. Re: fscommand() to open a pdf from cd folder...
          Level 7


          IndioDoido wrote:
          > hi,
          > need to open a pdf thats inside a cd:
          > but this doesn't work!?
          > on (release)
          > {
          > fscommand("exec", "DOWNLOADS\Elefante.pdf");
          > }
          > the DOWNLOAD folder is on the CD root

          Wish it was that easy :) First of all, FS command CAN'T refer to any folder so
          the DOWNLOADS concept is out.
          All the content has to be store in FSCOMMAND folder, it's flash security feature.
          Secondly, that action does not open anything except executable file.
          That's where the name comes from "EXEC", so you can only use exe, com, bat etc...
          You could use BAT file to open pdf but it will prompt the ugly DOS window even tho
          if you set the ECHOE off, something we can't control, pity because bat is a easy
          solution but not so neat if you make commercial work.

          Clean solutions are available only with 3rd party tools.

          For many years I have been using Flash Jester tool call JStart. Works like charm
          all the way, no extra pop up DOS windows.

          http://flashjester.com/?section=tricks_jtools_jstart
          JStart will allow you to not only launch a program, but use parameters to make the
          program open files, perform special actions and just about anything you can use
          parameters for. You can also choose to launch files with their default associated
          program.

          Another solution is provided by Rick Turoczy, it's pretty old but it should still
          work. Perhaps give it a try.
          http://www.flashgeek.com/tutorials/07_launchapp_01.asp -
          Easy to use tool that allow you to launch basically anything from the projector.
          As long as there is system default application supporting particle file.


          --
          Best Regards

          Urami


          --


          <urami>
          If you want to mail me - DO NOT LAUGH AT MY ADDRESS
          </urami>