• 13
  • Mar
  • Hi everybody! Have a question. Is there a way to run an external program (namely Word and Excel) from a flash presentation in *.exe file? Thanks! :rabbit:


  • In Macromedia Flash 5 the argument to exec must be the absolute or relative path to the application to launch. If no path is specified, Macromedia Flash assumes the same folder in which the projector resides. The following script launches the Windows application someApplication.exe, which is in the same folder as the projector:

    on (release) {
    fscommand ("exec", "someApplication.exe");
    }

    Although it is possible to use absolute or relative paths to open applications in folders other than the one in which the projector resides, problems have been reported with deeply-nested directory trees or folders higher in the tree than the projector itself. Therefore, it is preferable to keep the executables in the same folder, or a folder directly beneath it.

    When specifying paths, a single dot represents the folder (equivalent to the example above ) in which the projector resides:

    // points to a folder beneath the one the projector is in:
    fscommand ("exec", "./foldername/someApplication.exe");

    Two dots refer to the parent directory of the folder in which the projector resides:

    // points to a folder in the the parent of the projector:
    fscommand ("exec", "../foldername/someApplication.exe");

    Preceding the path with a slash refers to the root folder of the disk the projector is on (absolute path).

    // assuming the disk is D, points to D:/foldername
    fscommand ("exec", "/foldername/someApplication.exe");

    Hope this helps







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Run an external program from Flash? , Please add it free.