Error getting tags :
error 404Error getting tags :
error 404 prepare | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
prepare
Basics
Expander triangle
Type
Command
Syntax
prepare videoClip filePath [looping] [at startPoint]
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Preloads a movie into memory.
Examples

prepare videoClip "/Disk/Folder/Movie" at 100,100
prepare videoClip ID 17 looping

Additional Comments
Expander triangle

Use the prepare command to speed up execution of the play command.

Parameters:

The filePath is the location and name of the file you want to play. If you specify a name but not a location, Revolution assumes the file is in the defaultFolder.

The point specifies the center of the movie to be played, relative to the current stack window. If the point is not specified, the movie is positioned at the center of the card.

Comments:

Use the prepare command to preload the movie at some time before it is needed. Then use the play command with identical parameters to actually play the movie. Since the movie is already loaded into memory, it starts up instantly when the play command executes.

The parameters of the prepare command must be identical to those of the corresponding play command.

User Comments
Expander triangle