The quick and dirty way is to simply give a text or field object an external hyperlink address of the PDF -- the pathname to the PDF file that is stored on the CD-ROM with your presentation (I assume) or it could also be on a web server. This is done in the Text Inspector dialog, in the field by the link icon (tool tip says "Hyperlink data" when cursor is over this field).

I see you want to trigger this from a frame script. I'm not sure how to do this when there is no sprite on the stage, but it may be possible. I always use a text object that acts similar to linked text in a web page. Again this is quick, cheap, and very simple. For more serious projects (bigger budgets), the approach would be more sophisticated.

When the object is clicked on, Director will send that pathname to the operating system and let it handle everything. If local, Adobe Acrobat Reader will launch and open the PDF. If non-local, the default browser will launch and display or download the PDF, as per the preference settings of the browser. When done reading the PDF, the user quits Acrobat Reader (or the browser and Acrobat Reader, if non-local) and the Director-based projector is the active application again. It works on Mac or PC the same. I do this all the time. It saves me from having to integrate someone else's content (that they think is so great and will be offended if I change it) or having to re-create their work in Director.

No extra Xtra is required with this, but you will want to include the installers for Acrobat Reader and your favorite web browser just in case the user doesn't have them already.

-------------------------------------------------
Ronald Woodland -- St. George, Utah 84770
-------------------------------------------------
"I long to accomplish a great and noble task, but
it is my chief duty to accomplish small tasks as
if they were great and noble." -- Helen Keller



William Miller wrote:

I have a pdf I need to launch from a frame script and I am at a loss. I have the PDF xtra but it does not work in OS X on the mac.....any ideas
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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!]



[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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