CREATE MOVIE


PLBCMP GUI Only

square.png Properties

square.png Events

square.png Instructions

 

The CREATE MOVIE statement initializes a MOVIE object variable. This object allows AVI formatted movies that are played in a specified window under Windows. The statement format is:

 

 

[label]

CREATE

[{parent};]{movie}={pos},{movie-name}[:

 

 

 

{property list}...]

 

Where:

label

Optional. A Program Execution Label.

parent

Optional. A previously created WINDOW or PANEL object variable or pointer to a WINDOW or PANEL object on which the object is created.

movie

Required. The name of a previously defined MOVIE object variable or pointer to a MOVIE object.

pos

Required. The screen position of the object given as: {top}:{bottom}:{left}:{right}.

movie-name

Required. A Character String Variable or Literal providing the MOVIE name that is played.

property list

Optional. One or more of the object properties.

Flags Affected: NONE

Note the following:

  1. For Windows, the movie must be in AVI format.

  2. If {movie-name} is Null String, an open dialog is activated that allows the user to specify a movie to use.

  3. If {movie-name} is not found during creation of the object, the runtime generates an O102 error.

  4. The window size is very critical on the speed and accuracy of the display. If the movie must be resized on the fly from the original size, extra time is required, some frames are skipped, and overall jerkiness is noticed. The faster processors reduce this problem.

  5. To start a MOVIE, left click within its defined screen boundaries. A second left click pauses the video. Another left click resumes the video play. A right mouse click stops the video and rewinds the file to the beginning.

  6. If the optional {parent} parameter is not specified, the default window is used.

 

 

See Also: Example Code, CREATE, Object Output Instructions

 



PL/B Language Reference CREATE MENU CREATE MREGION