Open a PDF-file in director.Can somebody help me?

Ask a Question related to Macromedia Director Basics, Design and Development.

  1. #1

    Default Open a PDF-file in director.Can somebody help me?

    Dear everybody,

    My name is Fien and I'm from Belgium.
    English is not my first language, so I hope I don't make to many mistakes.

    I have a question about Director... please, can somebody help me out?

    I have a button in director and I want to link it to a pdf-file.
    So... when you click on the button, acrobat opens and opens the right
    pdf-file...

    I think it's very simple but I can't find the right script...

    I used this script but it doesnt' work... :(

    on mouseDown
    baOpenFile("R300-EN.pdf","maximised")
    end


    If somebody knows the answer... please keep it simple because I don't know a
    lot about director...
    (shame on me) :)



    Greetz and thank you for your time!!!



    Fien

    Fien_vdh Guest

  2. Similar Questions and Discussions

    1. can't open w3d file in director
      Hi, I have exported a 3d scene from maya, but when i try to open it in director it sends an error message saying its not a director file while it...
    2. Director file that when I try and open it states Protected !?!
      I have an old Director file (Director 6.0) that I wanted to open to edit. When I double-click on it to open it it brings up a message that states...
    3. How to open an avi file with mplayer from Director ?
      Hello, I tried "open "...avi" with "..exe" but it just open mplayer.exe and doesn't launch the avi file... What's the problem ? Thanks
    4. Open a extern mpeg file fromwithin Director.
      Hello guys, (and maby girls) I'm a student and i have a new project. But i ran against a problem: it's like this: - I have to make a cdrom...
    5. open authorware file in director
      how can i open authorware project from director file
  3. #2

    Default Re: Open a PDF-file in director.Can somebody help me?

    on mouseDown
    baOpenFile(the moviePath & "your_PDF_folder_name/" &
    "R300-EN.pdf","maximised")
    end

    --
    Diego
    [url]http://dmzone.it[/url]


    "Fien_vdh" <webforumsuser@macromedia.com> wrote in message
    news:c6iobo$nco$1@forums.macromedia.com...
    > Dear everybody,
    >
    > My name is Fien and I'm from Belgium.
    > English is not my first language, so I hope I don't make to many
    mistakes.
    >
    > I have a question about Director... please, can somebody help me out?
    >
    > I have a button in director and I want to link it to a pdf-file.
    > So... when you click on the button, acrobat opens and opens the right
    > pdf-file...
    >
    > I think it's very simple but I can't find the right script...
    >
    > I used this script but it doesnt' work... :(
    >
    > on mouseDown
    > baOpenFile("R300-EN.pdf","maximised")
    > end
    >
    >
    > If somebody knows the answer... please keep it simple because I don't
    know a
    > lot about director...
    > (shame on me) :)
    >
    >
    >
    > Greetz and thank you for your time!!!
    >
    >
    >
    > Fien
    >

    Diego Guest

  4. #3

    Default Re: Open a PDF-file in director.Can somebody help me?

    "Fien_vdh" <webforumsuser@macromedia.com> wrote in news:c6iobo$nco$1
    @forums.macromedia.com:
    > on mouseDown
    > baOpenFile("R300-EN.pdf","maximised")
    > end
    As Diego noted, you need to supply the full path to the file. Diego did
    so by utilizing 'the moviePath' system property.

    If you check the results returned by Buddy API functions, you might
    notice that the above returns a 2. According to the Buddy API Help file,
    that means "File was not found" which might lead you to the "full path to
    the file" information in the Help file.

    Here is a very basic example of how you can use those return codes:

    on mouseUp me
    OK = baOpenFile(the moviePath &"R300-EN.pdf","maximised")
    if OK < 32 then
    -- ERROR
    alert "Error opening file" &RETURN &"Error =" &&OK
    end if
    end

    Of course, you could use baMsgBox instead of alert. And you could create
    a lookup table from the help file to display plain English error messages
    insead of a number.

    Oh crap, you've cross-posted. Ah well, I already had this written before
    I noticed it, so I'll go ahead and post it.


    --
    Mark "Netiquette has gone to the dogs" Boyd
    Keep-On-Learnin'
    Mark A. Boyd Guest

  5. #4

    Default Re: Open a PDF-file in director.Can somebody help

    Thanx a lot for helping me out!!

    (sorry for cross-posting it... i didn't knew which topic was the right one.)


    Other question:
    How do you link a button to your outlook express.

    Like: [email]info@macromedia.com[/email]

    When you click on it, it should open your mailbox in outlook and fills in the
    right emailaddress...

    Fien x x

    Fien_vdh Guest

  6. #5

    Default Re: Open a PDF-file in director.Can somebody help

    "Fien_vdh" <webforumsuser@macromedia.com> wrote in
    news:c6qanj$om7$1@forums.macromedia.com:
    > Thanx a lot for helping me out!!
    Gladly.
    > (sorry for cross-posting it... i didn't knew which topic was the
    > right one.)
    Keep-On-Learnin' :)
    > Other question:
    > How do you link a button to your outlook express.
    You don't. You delete outlook express from your system entirely ;-)

    I see you started a new thread for this question, so I'll give a more
    helpful reply there.


    --
    Mark A. Boyd
    Keep-On-Learnin' :)
    Mark A. Boyd Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139