A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: [Resolved] [Resolved] launch Acrobat Reader

  1. #1
    Junior Member
    Join Date
    Mar 2001
    Posts
    11
    Hello everybody!!!
    This is really important cause I m running out of time. I searched heaps of threads but I didn't find the answer yet nor did I understand the half of it.

    My problem is very simple (as I thought)
    I'm producing a CD with a projector file, in the movie is a button saying "open pdf file" that button should check if Acrobat Reader is installed and if so open the pdf file.(or if it's not possible to check if Reader is installed than just open the damn pdf-file)
    (there should also be another button saying: insall Acrobat Reader - which will be on the CD aswell)

    i know it's somehow working with FScommand - please someone tell me in exact words how I have to write that down,
    I tried already
    on release
    FS Command ("exec",myfile.pdf)
    nothings happening with that, the files are lying in the same directory and I'm using flash5.

    I will end my search for today 'cause I'm completly stuffed sitting here for the last 10 hrs, so I hope when I turn on my computer tomorrow some good angel has sent me the answer.
    3soul



  2. #2
    Junior Member
    Join Date
    Oct 2000
    Posts
    19
    I was trying the same thing and I couldnt get it to work. But then I realized that IE and Netscape both get the Acrobat plugin when Acrobat is installed. Just use a GetURL function. The browser will open and display the pdf file.

    David

  3. #3
    Senior Member
    Join Date
    Jun 2000
    Posts
    666
    Coding to check a registry entry is just so much a pain in the butt.. that I have never bothered.. (in this case you would check a registry entry for Adobe Acrobat version # whatever)

    If you know how to code in Vbscript you may be able to run a check with Vbscript and then have it perform the decision action.. but that's the best I can think of.. other possibility's lie in 3rd party app's (maybe.. just maybe.. Northcode's program or one of ***********'s can help).. lastly of course there's always custom programming..

    Note: That coding in Vbscript would assume that the user has IE 4 or higher on there system (Vbscript comes with IE) and then it would take a 3rd party app to run the script (basically start it in it's default application)

    Anyway.. my program will open a default file in a application.. and it's free.. there are various 3rd party programs available as well but most of them cost money.. (you can also use a .bat file.. but it's ugly Check the tutorials section for more info)

    Flashtools 4 is available here..
    http://board.flashkit.com/board/show...threadid=20493

    Info on Flash 5 coding syntax for my tools is here..
    http://board.flashkit.com/board/show...threadid=46319

    And lastly the latest Beta versions which have certain corrections is available here.. (Advanced knowledge required)
    http://board.flashkit.com/board/show...threadid=88493

  4. #4
    Lifetime Friend of Site Staff Northcode's Avatar
    Join Date
    Dec 2000
    Location
    Whitehorse YT
    Posts
    3,764
    3soul sent me email and I replied but I'll reply here for the benefit of everyone....

    SWF Studio (www.northcode.com) can do what you want.

    The SYSINFO.QUERYOPEN command allows you to find out whether the PDF extension is registered. Then you can install the acrobat reader if necessary.

    http://www.northcode.com/studio/plugins/sysinfo.html

    Once you know that an application is registered to handle PDF files, you can use the SHELLOPEN command to open the PDF file.

    http://www.northcode.com/studio/help...shellopen.html

    You can also call SHELLOPEN blindly and if no app has been registered to handle PDF it just does nothing but that doesn't sound like what you want

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