Hello

I am using Director 7.0.2 for a project and I am having problems opening
"pdf" files on Windows. The following code works fine on a Mac. It also
works on Windows(95, 98) in Authoring mode. However, at runtime it only
works on one of our machines running Windows 98. On other machines running
Windows(95, 98, 2000) the "pdf" does not open. It looks like its about to
(the cursor turns to the hour glass) but nothing happens. The paths are all
correct. 


global gPathDelim


on mouseUp

gPathDelim = (the moviepath).char[(the moviepath).char.count]


pdfFilePath = the moviepath & "DataFiles" & gPathDelim & "pdfFiles" & ¬
gPathDelim

pdfFileName = "someFile.pdf"
  

if fileExists(pdfFilePath & pdfFileName) = 0 then

 if the platform contains "Windows" then
  open (pdfFilePath  & pdfFileName) with (the pathname & "AcrobatReader" & ¬
gPathDelim & "Win" & gPathDelim & "Reader" & gPathDelim & "AcroRd32.exe")

  else  --Mac platform
     baOpenFile (pdfFilePath  & pdfFileName, "" )
  end if

 else 
   alert "The PDF is missing."
 end if

end 


I have included "Acrobat" on the CD. It is on the same level as the "exe".

Any ideas?

Thanx
Justin


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to