Ask a Question related to Macromedia Director Basics, Design and Development.
-
Cool Jools #1
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
-
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... -
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... -
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... -
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... -
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... -
Doug Golenski #2
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...getting> 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 keepand> the message "handler not defined"! I am not a frequent user of Directorfolder> 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 sameCD-ROM> 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 theis> or called up if the customer already has it loaded on their computer... orfile> there another load of script I need to add as well just to make the PDFthe> open in the PDF viewer on the users computer?
>
> Can a script similar to this also be used to load a software program fromprocedure?> CD-ROM onto the customers computer, or is this a much more complex>
> Many thanks, Cool Jules
>
Doug Golenski Guest
-
Cool Jools #3
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
-
Doug Golenski #4
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...the> Hi Doug,
> Thanks for the tip, this explains why I found no mention of baOpenFile inbasic> help file! It may seem obvious to you guys but to newbies etc these verythe> 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 intrigger 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 towarnings,> PDF to open when I click on the square. When I run it I get no errorsame> 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 thework,> folder, and am clicking on the play button on the top taskbar to see it> but nothing is happening when I click on the square?
>
> Please can you advise further. Many thanks.
>
> Cool Jules.
>
Doug Golenski Guest
-
Cool Jools #5
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



Reply With Quote

