Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

opening files from director 1

Status
Not open for further replies.

marty321

Technical User
Aug 9, 2004
9
IE
hi guys,

I have been lookin through the forums at the various
ways of opening files within your director movie,
and it looks like the Buddy API 3.6 xtra is the way to
go. Everything works grand.

However there was a few bits of code am havin trouble
with.

This is the thread,


It has a small bit of code wrote by kennethkawamoto which brings up a dialogue box telling the user to instal acrobat
reader if it is not installed on their computer, heres the code am using:

on mouseUp me
baOpenFile("D:\Work\example.pdf", "normal")
if result = 31 then
alert("Please install Acrobat!")
end if

Problem is director is givin me a script error alert,
it dont like the line '31'.
Any help on this matter would be greatly appreciated.

Cheers Marty
 
on mouseUp me
result = baOpenFile("D:\Work\example.pdf", "normal")
if result = 31 then
alert("Please install Acrobat!")
end if
end mouseUp
 
Thanxs very much kennethkawamoto that works a treat:)
 
doh!

should have read the code properly, in th first place.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top