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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"file doesn't exist"...why? Its located next to the projector

Status
Not open for further replies.

AudreyLucy

Technical User
Jul 19, 2002
42
US
Hi ,
Well, I was able to make this work once on a test CD, then I redid a few things in the main movie and created a stub projector and now, for what ever reason, when I click on the button that used to pull up a pdf...it says it can't find the file. I placed the pdf in question, on the same level as the projector as well as the acrobat reader on the CD and used this lingo:

on mouseUp me
open the moviePath& "CACFfile.pdf" with the moviePath & "AcroRd32.exe"
end
It pulls up the reader...but not the file.
I get a message saying that the file doesn't exist and when I click ok on that message window, anothe message says that the path is wrong. Please help, I'm pulling my hair out! My client is cheap so I can't afford to buy the Xtra's that would probably make my life a whole lot easier...but I did download the free BuddyAPI Xtra to try to do the same thing, but I get an error saying that the script is wrong.

I'm not really sure other how to write the path for BuddyAPI...I tried this lingo that was suggested in the BuddyAPI help file:
baReadFile(the applicationPath & "CACFfile.pdf")

It doesn't seem to like anything I do. Like I said, the pdf and the projector are next to eachother, so it should be working.

Please help.
 
BuddyAPI command to open a file is: baOpenFile(). baOpenFile returns an error code:
--
errorCode = baOpenFile(the moviePath & "CACFfile.pdf")
alert("errorCode:" && errorCode)
--
Then you can analyse the error.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top