Planet PDF Forum Archive

Planet PDF ForumWowsers! This is page is old, head to the LIVE Planet PDF Forum. It features more than 10 conferences, covering everything from beginner to in-depth developer and pre-press discussions. If you wish to continue... one & two archive covers 1999-2011 (160,000 pages).

New Forum | Previous | Next | (P-PDF) Developers

Topic: synchronized actions
Conf: (P-PDF) Developers, Msg: 59414
From: sreerama_murthy
Date: 5/29/2002 05:38 PM

When the user presses a button in my JavaScript form within
Acrobat 4, I need to run an external exe file and then play a
movie. The external exe generates the movie file to be played,
so these two actions need to be synchronized. I am not aware of
any synchronization mechanism inside Acrobat. When an event
is associated with multiple actions, all actions seem to be
starting at once.

To deal with this problem, since I know the approximate time
that the exe runs for, I wrote a JavaScript to wait for that
much time. So, my event actions look like "OpenFile(exe),
JavaScript(wait), Movie". The time estimates for waiting
have to be conservative (i.e., longer) to avoid "file not found"
errors. Because of this, it is necessary for me to at
least show an hourglass cursor or some other indication to
the user while the wait is on. I could not find anything on
hourglass cursors on the Net. Further, even simple actions like
changing the fillColor or border of the button before and
after the wait do not work for some reason.

My questions:
1. Is there a better way to handle synchronization than what
I am doing, in Acrobat4?
2. Is there a way to change cursor to hourglass and back from
within JavaScript?
3. Can some kind soul provide an example of a simple script
that, say, shows a button in red, waits for 5 seconds and
then shows it in blue?

Thanks a ton,
- Sreeram

PDF In-Depth Free Product Trials Ubiquitous PDF

Debenu Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link...

Download free demo

Debenu PDF Tools Pro

It's simple to use and will let you preview and edit PDF files, it's a Windows application that makes...

Download free demo

Five visions of a PDF Day

In the world of PDFs or as we like to say Planet (of) PDF, a year isn't a real PDF year without an intense few days of industry knowledge sharing.

May 15, 2018
Platinum Sponsor

Search Planet PDF
more searching options...
Planet PDF Newsletter
Most Popular Articles
Featured Product

Debenu PDF Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link control. Take Acrobat to the next level.


Adding a PDF Stamp Comment

OK, so you want to stamp your document. Maybe you need to give reviewers some advice about the document's status or sensitivity. This tip from author Ted Padova demonstrates how to add stamps with the Stamp Tool along with related comments.