Adobe InDesign CS (3.0) Object Model JS: Movie

InDesign CS

Class

Movie

 A movie.

QuickLinks

bringForward, bringToFront, duplicate, extractLabel, fit, insertLabel, markup, move, remove, resetScaling, resize, select, sendBackward, sendToBack, store, unlink, verifyURL

Hierarchy

Oval | PageItem | Polygon | Rectangle
Movie
Image | Link

Properties

PropertyTypeAccessDescription
associatedXMLElementXMLElement readonlyReturns the associated XML element
descriptionstring r/wThe description of the Movie.
embedInPDFbool r/wIf true, the file is embedded in the PDF. If false, the file is linked to the PDF. Note: To embed movie files, acrobat compatibility must be acrobat 6 or higher.
filePathFile r/wThe full path to the file.
floatingWindowbool r/wIf true, opens a new window to play the movie. If false, plays the movie in the poster frame on the PDF document page.
floatingWindowPositionFloatingWindowPosition:
FloatingWindowPosition.UPPER_LEFT
FloatingWindowPosition.UPPER_MIDDLE
FloatingWindowPosition.UPPER_RIGHT
FloatingWindowPosition.CENTER_LEFT
FloatingWindowPosition.CENTER
FloatingWindowPosition.CENTER_RIGHT
FloatingWindowPosition.LOWER_LEFT
FloatingWindowPosition.LOWER_MIDDLE
FloatingWindowPosition.LOWER_RIGHT
r/wThe position of the floating window that displays the movie.
floatingWindowSizeFloatingWindowSize:
FloatingWindowSize.ONE_FIFTH
FloatingWindowSize.ONE_FOURTH
FloatingWindowSize.ONE_HALF
FloatingWindowSize.FULL
FloatingWindowSize.DOUBLE
FloatingWindowSize.TRIPLE
FloatingWindowSize.QUADRUPLE
FloatingWindowSize.MAX
r/wThe size of the floating window that displays the movie.
geometricBounds Array of Measurement Unit (Number or String) r/wThe bounds of the Movie excluding the stroke width, in the format [y1, x1, y2, x2], which give the coordinates of the top-left and bottom-right corners of the bounding box.
horizontalScalenumber r/wThe horizontal scaling applied to the text as a percentage of its current size. (Range: 1 to 1000)
idnumber readonlyThe unique ID of the Movie.
imagesImages readonlyA collection of bitmap images in any bitmap file format (including TIFF, JPEG, or GIF).
indexnumber readonlyThe index of the Movie within its containing object.
itemLayerLayer r/wThe layer that the Movie is on.
itemLinkLink readonlyThe source file of the link.
labelstring r/wA property that can be set to any string.
lockedbool r/wIf true, the Movie is locked.
moviePosterTypeMoviePosterTypes:
MoviePosterTypes.NONE
MoviePosterTypes.STANDARD
MoviePosterTypes.FROM_MOVIE
MoviePosterTypes.PROXY_IMAGE
r/wThe type of poster for the movie.
namestring r/wThe name of the Movie.
parentOval
PageItem
Polygon
Rectangle
readonlyThe parent of the Movie (a PageItem, Oval, Rectangle or Polygon).
playModePlayMode:
PlayMode.ONCE
PlayMode.STAY_OPEN
PlayMode.REPEAT_PLAY
r/wThe movie's playback mode.
playOnPageTurnbool r/wIf true, the movie plays automatically when a user views the page that contains the movie poster in the PDF document.
posterFilestring r/wThe poster file.
propertiesObject r/wA property that allows setting of several properties at the same time.
showControlsbool r/wIf true, displays playback controls at the bottom of the movie display window.
urlstring r/wThe URL.
verticalScalenumber r/wThe vertical scaling applied to the text as a percentage of its current size. (Range: 1 to 1000)
visibleBounds Array of Measurement Unit (Number or String) r/wThe bounds of the Movie including the stroke width, in the format [y1, x1, y2, x2], which give the coordinates of the top-left and bottom-right corners of the bounding box.

Methods

Instances

void bringForward ()
Brings the Movie forward one level in its layer.

void bringToFront ()
Brings the Movie to the front.

Movie duplicate ()
Duplicates the Movie.

string extractLabel (key: string)
Gets the label value associated with the specified key.

ParameterTypeDescription
keystringThe key.

void fit (given: FitOptions)
Applies the specified fit option to content in a frame.

ParameterTypeDescription
givenFitOptions:
FitOptions.CONTENT_TO_FRAME
FitOptions.CENTER_CONTENT
FitOptions.PROPORTIONALLY
FitOptions.FRAME_TO_CONTENT
The fit option to use.

void insertLabel (key: string, value: string)
Sets the label to the value associated with the specified key.

ParameterTypeDescription
keystringThe key.
valuestringThe value.

void markup (using: XMLElement)
Associates the page item with the specified XML element while preserving existing content.

ParameterTypeDescription
usingXMLElementThe XML element.

void move ([to: any][, by: Array of Measurement Unit (Number or String)])
Move Page Item to a new location. One of the To or By parameters is required.

ParameterTypeDescription
to Array of 2 Units
Layer
Page
Spread
The new location of the object. Can accept: Array of 2 Units, Spread, Page or Layer. (Optional)
by Array of Measurement Unit (Number or String)Amount by which to move the object relative to its current position (Optional)

void remove ()
Deletes the Movie.

void resetScaling ()
Resets the Movie's scaling to 100%. Note: This does not change the size of the Movie. Instead, it makes the current size of the Movie the basis for future scaling.

void resize ([horizontalScale: number][, verticalScale: number][, around: any][, consideringCurrentScale: bool=false][, transformingContent: bool=true][, consideringParentsScale: bool=false])
Resize the page item. You must specify either horizontal scale or vertical scale or both.

ParameterTypeDescription
horizontalScalenumberThe percentage of horizontal scale (Optional)
verticalScalenumberThe percentage of vertical scale (Optional)
aroundAnchorPoint
Array of 2 Units
The point to scale around. Can accept: Array of 2 Units or AnchorPoint enumerator. (Optional)
consideringCurrentScaleboolIf true then the object's current scale and new scale will be combined. If false then the new value is absolute. The default value is false. (Optional) (default: false)
transformingContentboolIf true then both the object and items within it are scaled (Optional) (default: true)
consideringParentsScaleboolIf true then the object is scaled relative to its parent page item. If false it is scaled relative to the spread. (Optional) (default: false)

void select ([existingSelection: SelectionOptions=SelectionOptions.REPLACE])
Select this object.

ParameterTypeDescription
existingSelectionSelectionOptions:
SelectionOptions.ADD_TO
SelectionOptions.REMOVE_FROM
SelectionOptions.REPLACE
How to handle the existing selection (Optional) (default: SelectionOptions.REPLACE)

void sendBackward ()
Sends the Movie back one level in its layer.

void sendToBack ()
Sends the Movie to the back.

Asset store (using: Library)
Store a page item in a library

ParameterTypeDescription
usingLibraryThe library in which to store

void unlink (from: UnlinkFrom)
Detaches an overridden master page item from the page or from the master

ParameterTypeDescription
fromUnlinkFrom:
UnlinkFrom.PAGE
UnlinkFrom.MASTER_SPREAD
What to unlink from

bool verifyURL ()
Verifies that the specified URL is valid and contains the specified movie file. Valid only when the movie file is specified by a URL rather than a file path.

Element of

Link.parent

MovieBehavior.movieItem

Return

Movie Movie.duplicate ()

Movie Movies.add ([layer: Layer][, at: LocationOptions=LocationOptions.UNKNOWN][, reference: any][, withProperties: Object])

Jongware, 27-Jun-2010 v3.0.3dContents :: Index