This content has been marked as final. Show 4 replies
There is no handler declaration required. Have you placed the Xtra in your
Director Xtras folder? Are you including it in your published work?
"TaiChiGuy" <email@example.com> wrote in message
> I've seen plenty of queries about using buddy API to open PDF files. I
> want to go over old ground, however, I haven't seen a reference to the
> particular error I'm seeing. I'm a Director novice and not at all
> with Lingo.
> I'm using Director MX 2004 and the buddyAPI Xtra.
> My script is:
> on mouseup me
> baOpenFile(the pathname&"DataSheets\ePassport.pdf","normal")
> The error I get is:
> Script error: Handler not defined #buddyOpenFile
> Am I missing a declaration of the handler? Is my syntax flawed?
> Any assistance would be appreciated.
Thanks for the prompt reply.
Under the folder with my working DIR files I have another folder called "Xtras".
There's a different Xtra in that folder for another function that is working properly, so I think they're in the correct place.
Would reinstalling the Xtra help?
For authoring, I believe you will need a copy of the Xtra in the Xtras
folder where director is installed (typically c:\Programs
Also, your error says the handler not found is called buddyOpenFile, but in
your example you have called the baOpenFile function. Is this a typo?
Yes, it is a typo.
Copying the Xtra to the application directory seems to have done the trick. Reader is launching and displaying the proper PDF!
Thanks much for the help.