
Using Help
|
Contents
|
Index
Back
181
Adobe Acrobat Help
Adding Interactivity
Using Help
|
Contents
|
Index
Back
181
Using page actions
To enhance the interactive quality of a document, you can specify actions, such as playing
sounds or movies, to occur when a page is opened or closed.
If you choose Go To Next Page as a page action and later want to change the action,
you must first switch to Continuous - Facing Pages layout to edit the action. If you are in
Single Page layout, the page always goes to the next page, making it impossible to edit
that action.
To set a page action or edit an existing page action:
1
Go to the page in the document that will activate the action.
2
Choose Document > Set Page Action.
3
Select one of the following:
•
Page Open sets an action when the page opens.
•
Page Close sets an action when the page closes.
4
Click Add and choose an action. For a list of action types and descriptions on how to
use them, see
“About action types” on page 180
.
•
To create a series of actions, click Add again. Choose an action from the menu, and use
the Up and Down buttons to arrange the actions in the order you want them to occur.
•
To edit a page action, select the page action, and select an item from the Do The
Following Things list. Select Edit, and make the desired changes to the Type or Desti-
nation. Click OK to accept these changes.
•
To delete a page action, select an item from the Do The Following Things list, and then
click Delete.
Note:
If you set a Page Action/Execute Menu Item to Full Screen on Page Open or Page
Close, the next time the same page opens or closes, Full Screen is toggled off.
5
Click OK to accept the page actions.
Working with JavaScript actions
A JavaScript action allows you to invoke a JavaScript from a form field, a link, a bookmark,
a document, or a page action. Familiarity with JavaScript is required. Storing a JavaScript
for a commonly used function as a field level script allows you to invoke the function from
other JavaScripts. Storing a function as a document level JavaScript makes the function
available to all JavaScripts in the current document. Storing a function as a plug-in level
script makes the function available to all JavaScripts in the application. Plug-in level scripts
are contained in files with a .js extension. These scripts should be located within the Plug-
ins folder in the JavaScripts subfolder.
For more information on creating simple JavaScripts, see
“Using custom JavaScripts in
forms” on page 164
, or choose Help > Forms JavaScript Guide to display the
Acrobat Forms
JavaScript Object Specification
. This document provides information about the classes and
objects that have been defined to accommodate Acrobat forms.
Note:
In order to create and use JavaScript actions in Acrobat, you must have JavaScript
enabled. Make sure that JavaScript is enabled by choosing Edit > Preferences > General