A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: !!HELP...Loading PDF with fscommand

  1. #1
    Senior Member
    Join Date
    Jun 2002
    Posts
    120

    !!HELP...Loading PDF with fscommand

    I created a button with fscommand..and put following..

    on (release) {
    fscommand("exec", "FinancialCoursenotes.bat");
    }

    I ctreated fscommand folder and put in same folder as projector
    in fs command folder I created text doc and saved as .bat with following in text

    @ echo off
    start FinancialCoursenotes
    exit

    In fscommand folder I also put FinancialCoursenotes.pdf

    IT doesn't work!?!
    Please help...deadline looming...lol
    thx

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Try adding the extension in the .bat file...

    @ echo off
    start FinancialCoursenotes.pdf
    exit

  3. #3
    Senior Member
    Join Date
    Jun 2002
    Posts
    120
    I tried that...still no go....Any Ideas?

  4. #4
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    You sure you have this fscommand subfolder bit correctly set up?
    And is the .pdf in it?

  5. #5
    Senior Member
    Join Date
    Jun 2002
    Posts
    120
    let's see again...
    on button in projector

    on (release) {
    fscommand("exec", "FinancialCoursenotes.bat");
    }


    in folder named fscommand

    FinancialCoursenotes.bat
    FinancialCoursenotes.pdf

    in the text document a named FinancialCoursenotes.bat i put

    @ echo off
    start FinancialCoursenotes.pdf
    exit

    start projector, press button...nothing

    !?!?!

  6. #6
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Where is your acrobat reader .exe? In c:\windows?

    What OS are you using?

    Try replacing the line...

    start FinancialCoursenotes.pdf

    With...

    start notepad.exe

    Just to see if it will open Notepad?

  7. #7
    Senior Member
    Join Date
    Jun 2002
    Posts
    120
    Tries it and it didnt work.....I running Windows XP, and it's a projector file running fullscreen....Does that matter? I minimised the projector to make sure the projector wasnt blocking it....

  8. #8
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Well, guess someone running XP and having done this, will have to pick this up. 'Cause I'm on ME and all of this works fine!
    Sorry!

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