EasyManua.ls Logo

Adobe 0046100128056 - InDesign - Mac - Adding Page Transitions

Adobe 0046100128056 - InDesign - Mac
209 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
CHAPTER 11: Creating Dynamic Documents Adding Page Transitions 164
Adding Page Transitions
Page transitions are special effects that appear when you change pages in an exported dynamic
document. Adding page transitions using scripting is easy, as shown in the following script fragment (for
the complete script, refer to PageTransitions).
//Given a document "myDocument" containing at least two spreads...
for(var myCounter = 0; myCounter < myDocument.spreads.length; myCounter++){
myDocument.spreads.item(myCounter).pageTransitionType =
PageTransitionTypeOptions.pageTurnTransition;
//This page transition option does not support the pageTransitionDirection
//or pageTransitionDuration properties. If you chose
//PageTransitionTypeOptions.wipeTransition (for example), you would be
//able to set those options, as shown in the next two lines:
//myDocument.spreads.item(myCounter).pageTransitionDirection =
PageTransitionDirectionOptions.leftToRight;
//myDocument.spreads.item(myCounter).pageTransitionDuration =
PageTransitionDurationOptions.medium;
}
//Export the document to SWF, and you'll see the page transitions.

Table of Contents