CREATE MOVIE Example


Example:

 

*

 

 

.Define the Objects and Variables

.

 

 

MOVIE1

MOVIE

 

BUTTON1

BUTTON

 

RESULT

INTEGER

1

*

 

 

.Create the Objects

.

 

 

  

CREATE

MOVIE1=5:18:30:50,"windsurf.avi"

  

CREATE

BUTTON1=20:21:35:42,"Quit"

*

 

 

.Activate the Objects

.

 

 

  

ACTIVATE

MOVIE1

  

ACTIVATE

BUTTON1,QUIT,RESULT

*

 

 

.Wait for an Event to Occur

.

 

 

  

LOOP

 

  

  EVENTWAIT

 

  

REPEAT

 

*

 

 

.Terminate the Program

.

 

 

QUIT

 

 

  

STOP

 

 

This instruction creates a MOVIE object at the specified location. The file played is 'windsurf.avi'. Once the program executes, clicking on the movie object allows playing of the video. Clicking on the Quit button terminates the program.

 

 



PL/B Language Reference CREATE MENU Example CREATE MREGION Example