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

  1. #1

    Default PDF problems too!

    I am writing a simple CD-ROM with a button to click to open a PDF brochure
    file. I have tried the script given to Fien-vdh on 04/26/2004 but keep getting
    the message "handler not defined"! I am not a frequent user of Director and
    have spent ages trying to fix the problem. My script is:
    on mouseUp me
    baOpenFile(the moviePath &"PdfTester22.pdf","maximised")
    end

    Where PdfTester22.pdf is the file I want to open and it is in the same folder
    as the Director movie. Where am I going wrong? Please can whoever responds
    spell out exactly what script I need to put where! (yes I am that
    inexperienced). I assume that the PDF reader does not need to be on the CD-ROM
    or called up if the customer already has it loaded on their computer... or is
    there another load of script I need to add as well just to make the PDF file
    open in the PDF viewer on the users computer?

    Can a script similar to this also be used to load a software program from the
    CD-ROM onto the customers computer, or is this a much more complex procedure?

    Many thanks, Cool Jules

    Cool Jools Guest

  2. Similar Questions and Discussions

    1. problems with 8.0 Rc4
      I've been trying to check that my current application working on postgres 7.4 will work with 8.0. I've not checked the application yet but I'm...
    2. problems with preLoadNetThing and fileName (was problems with preLoadNetThing and importFileInto)
      You don't want to leave the QT member in your cast when you publish your movie - it's not really there, it's linked. When you run the movie it will...
    3. IE6 problems
      I have a login script to a website where a user logs in through a standard webform with a username and password that needs to be validated. My...
    4. I having problems with IIS
      I just tried to view a page that I had earlier on my own personal web site and was not able to view it. I then tried just plain old localhost and...
    5. Why am I Having Problems ?
      On 8/2/03 1:08 PM, in article 6TUWa.216121$o86.33889@news1.central.cox.net, "Spam@markris.com" <Spam@markris.com> wrote: A Relationship requires...
  3. #2

    Default Re: PDF problems too!

    Make sure that you have the buddyAPI xtra.

    hth,
    Doug
    "Cool Jools" <webforumsuser@macromedia.com> wrote in message
    news:c6lkq9$195$1@forums.macromedia.com...
    > I am writing a simple CD-ROM with a button to click to open a PDF brochure
    > file. I have tried the script given to Fien-vdh on 04/26/2004 but keep
    getting
    > the message "handler not defined"! I am not a frequent user of Director
    and
    > have spent ages trying to fix the problem. My script is:
    > on mouseUp me
    > baOpenFile(the moviePath &"PdfTester22.pdf","maximised")
    > end
    >
    > Where PdfTester22.pdf is the file I want to open and it is in the same
    folder
    > as the Director movie. Where am I going wrong? Please can whoever responds
    > spell out exactly what script I need to put where! (yes I am that
    > inexperienced). I assume that the PDF reader does not need to be on the
    CD-ROM
    > or called up if the customer already has it loaded on their computer... or
    is
    > there another load of script I need to add as well just to make the PDF
    file
    > open in the PDF viewer on the users computer?
    >
    > Can a script similar to this also be used to load a software program from
    the
    > CD-ROM onto the customers computer, or is this a much more complex
    procedure?
    >
    > Many thanks, Cool Jules
    >

    Doug Golenski Guest

  4. #3

    Default Re: PDF problems too!

    Hi Doug,
    Thanks for the tip, this explains why I found no mention of baOpenFile in the
    help file! It may seem obvious to you guys but to newbies etc these very basic
    things are critical and the user instructions make no mention of them.

    Right, I have now loaded Buddy API onto my hard drive and placed it in the
    Xtras folder in Director MX. I have got a very simple tester running... a
    square on the stage and have used the script I indicated earlier to trigger the
    PDF to open when I click on the square. When I run it I get no error warnings,
    but also, more importantly I do not get the PDF file opening! Am I missing
    something else. (I am saving both the director movie and the PDF in the same
    folder, and am clicking on the play button on the top taskbar to see it work,
    but nothing is happening when I click on the square?

    Please can you advise further. Many thanks.

    Cool Jules.

    Cool Jools Guest

  5. #4

    Default Re: PDF problems too!

    What version of Director are you running, also what platform and OS? I set
    a variable with the path to the file and filename and then use the
    baOpenfile command...like this:
    on mouseUp me
    set acroPath = the moviePath & "PDFTester22.pdf"
    baOpenFile(AcroPath, "maximised")
    if Result < 32 then
    alert "Error Code" && Result
    end if
    end mouseUp me

    The error codes are listed in the buddyAPI help.

    hth,
    Doug
    "Cool Jools" <webforumsuser@macromedia.com> wrote in message
    news:c6nvrl$dum$1@forums.macromedia.com...
    > Hi Doug,
    > Thanks for the tip, this explains why I found no mention of baOpenFile in
    the
    > help file! It may seem obvious to you guys but to newbies etc these very
    basic
    > things are critical and the user instructions make no mention of them.
    >
    > Right, I have now loaded Buddy API onto my hard drive and placed it in
    the
    > Xtras folder in Director MX. I have got a very simple tester running... a
    > square on the stage and have used the script I indicated earlier to
    trigger the
    > PDF to open when I click on the square. When I run it I get no error
    warnings,
    > but also, more importantly I do not get the PDF file opening! Am I missing
    > something else. (I am saving both the director movie and the PDF in the
    same
    > folder, and am clicking on the play button on the top taskbar to see it
    work,
    > but nothing is happening when I click on the square?
    >
    > Please can you advise further. Many thanks.
    >
    > Cool Jules.
    >

    Doug Golenski Guest

  6. #5

    Default Re: PDF problems too!

    Doug, many thanks for your thoughts,
    I have just looked at it all again and discovered that I hadn't included the
    buddy API in the Xtras! (i.e choose modify/movie/Xtras menu/ then click the
    "Add button" and select the budapi.x32... I was looking for the api Xtra in the
    Xtras menu before clicking the add button and now realise that it was up to me
    to add it) Dumb or what?! When I did this and saved the projector, it all went
    well. This was for Director MX and Windows XP etc.

    Hope this helps other people like me.

    Cheers, Jools.

    Cool Jools 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