Creating Dynamic Documents. Adobe InDesign CS6
تبلیغات
تبلیغات
11
Creating Dynamic Documents
CS6
Chapter Update Status
Unchanged
InDesign can create documents for web and online use, also known as Rich Interactive Documents (RID).
Dynamic documents contain sounds, animations, hyperlinks, and other interactive content. InDesign documents can be exported to SWF, XFL, or PDF. For SWF and XFL files, documents can include animations, buttons, multistate objects, movies, and sound clips. You can use the Preview panel in InDesign to test some types of dynamic content before exporting.
This chapter shows how to create dynamic documents using scripting. For more on exporting as PDF, SWF, and XFL, refer to the “Working with Documents” chapter.
Importing Movies and Sounds
InDesign can import movie and sound files that can then be viewed or listened to in exported PDF, SWF, or
XFL documents. Movies and sounds in an InDesign document are very similar to graphics in that they exist inside container objects on an InDesign page. Unlike graphics, however, you cannot see (or hear) the content of the imported multimedia files on an InDesign page. For that, you'll need to either view the page in the Preview panel, or export the file, then open the file in a viewer capable of displaying the content
(such as Acrobat Reader or a web browser).
Scripts can control the playback properties of a sound or movie in an exported dynamic document. You can also add a preview, or “poster,” image to the page item containing the sound or movie.
The following script fragment shows how to import a movie and control the way that the movie is shown and played in an exported document (for the complete script, refer to PlaceMovie).
--Given a page "myPage"... tell myPage set myFrame to make rectangle with properties {geometric bounds:{72, 72, 288, 288}} end tell
--Import a movie file (you'll have to provide a valid file path on your system) tell myFrame to place file "hazuki:movie.flv" set myMovie to movie 1 of myFrame
--Set movie properties.
set embed in PDF of myMovie to true set show controls of myMovie to true get properties of myMovie
--Add a preview image. You'll have to provide a valid path on your system.
set poster file of myMovie to "hazuki:movie poster.jpg"
The following script fragment shows how to import a sound file and control the playback and display of the sound in an exported document (for the complete script, refer to PlaceSound).
176
دانلود
تبلیغات