Movie (Movie class)

Movie is a media shape that plays a movie from a file that is stored on the computer running the presentation. The movie data is not stored in the presentation. The movie shape simply references a movie file in the file system.

With a movie object, it is important to keep the accompanying file with the presentation and in the same place in the file system in order for the correct data to be accessed and played.

Creating a new Movie

You create a new Movie object in the Presentation class, specifying the referenced movie file:

Clipboard createMovie(java.lang.String file) [Presentation]

Working with an existing Movie

To determine the file used by an existing movie use:

java.lang.String getFile()

To set a new reference file use:

void setFile(java.lang.String file)

Play options

Just as in PowerPoint, you also have the option to set a movie to rewind when it's done playing.

To determine if a movie has been set to rewind when done use:

boolean getRewindWhenDone()

To set a movie to rewind when done use:

void setRewindWhenDone(boolean value)

Page generated: 2008-01-18 02:53:28 GMT TonicPoint Builder Developer's Guide -- Version 2.3