A Flash Developer Resource Site

Page 2 of 2 FirstFirst 12
Results 21 to 29 of 29

Thread: Using Flash Command Line Tools in Swish

  1. #21
    Junior Member
    Join Date
    Aug 2003
    Location
    Singapore
    Posts
    17
    Okay, my .pdf file launches w/o the dos window when i double click on the .exe which i renamed.

    Problem is the link doesn't work from my presentation, whether it in in .swf or converted to a projector.

    Possible reasons are:

    1. My files are placed wrongly.

    2. My FSCommand argument is wrong.

    3. My presentation file format is wrong.


    For 1, my presentation file and my fscommand folder are on the same level, and my fscommand folder contains bob.exe, bob.bat and bob.pdf. bob.pdf launches fine if i double click on bob.exe.

    For 2, my argument for the fscommand, exec, is "bob.exe", as opposed to say, "run bob.exe" for example. I have tried various variations such as "bob.bat" or "bob.pdf" also but none of them work either.

    For 3, I have tried exporting my Swish file to both .swf and .html and none of the links work. Even after converting the .swf to a projector the link still doesn't work.

    I have been searching the Swish forums and it seems that everyone esle's works except for mine. I must be doing something wrong, but what?

  2. #22
    Lifetime Friend of Site Staff Northcode's Avatar
    Join Date
    Dec 2000
    Location
    Whitehorse YT
    Posts
    3,766
    I'll try this from SWiSH tomorrow (my licensed copy is at the office) and let you know how I make out. If it works I'll post the SWI file here with instructions for you.

  3. #23
    Junior Member
    Join Date
    Aug 2003
    Location
    Singapore
    Posts
    17
    Wow, you'd do that? I would really appreciate that. Thank you so much.

  4. #24
    Lifetime Friend of Site Staff Northcode's Avatar
    Join Date
    Dec 2000
    Location
    Whitehorse YT
    Posts
    3,766
    That's why they pay me the big bucks.. hey wait.. they don't pay me anything.. I must be doing this because the doctors increased my meds again...

  5. #25
    Junior Member
    Join Date
    Aug 2003
    Location
    Singapore
    Posts
    17
    *sheepish laugh*


  6. #26
    Junior Member
    Join Date
    Aug 2003
    Location
    Singapore
    Posts
    17
    Hi Northcode, you still there?

  7. #27
    Lifetime Friend of Site Staff Northcode's Avatar
    Join Date
    Dec 2000
    Location
    Whitehorse YT
    Posts
    3,766
    Yup, still here

    Check out www.northcode.com/misc/openpdf.zip and when you extract the files, make sure the layout looks like this (below). You don't have to use the EXACTLY same directories, I just put them in as examples, as long as openpdf.exe and the "fscommand" directory are in the same folder you'll be okay.

    Code:
      + c:\
      |
      | openpdf.swi
      | openpdf.swf
      | openpdf.exe
      |
      + c:\fscommand
        |
        | invoke.exe
        | pdf.exe
        | pdf.bat
        | test.pdf
    openpdf.exe is created from openpdf.swf, which was created from openpdf.swi. The only fscommand used in the SWI was fscommand("Exec", "pdf.exe")

    pdf.exe is just a copy of my proxy.exe utility renamed so it looks for the pdf.bat file (remember proxy looks at its own name to figure out what bat file to run)

    pdf.bat just says "invoke.exe open test.pdf", so it opens test.pdf

    If you extract this stuff, put the files where they belong, run openpdf.exe and click on the button - it should open the test.pdf file for you, it worked for me
    Last edited by Northcode; 09-10-2003 at 05:56 PM.

  8. #28
    Junior Member
    Join Date
    Aug 2003
    Location
    Singapore
    Posts
    17
    Thanks for your help Northcode, and sorry about the late response.

    I just had a kid!

    Will be some time before I try it out. Will keep you posted!

  9. #29
    Lifetime Friend of Site Staff Northcode's Avatar
    Join Date
    Dec 2000
    Location
    Whitehorse YT
    Posts
    3,766
    Congratulations! and give us some details when the baby stops crying

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center