prepare

Preloads a movie into memory.

# Metadata

Platforms: desktop, server OS: mac, windows, linux Introduced: 1.0 Security:

# Syntax

prepare videoClip filePath [looping] [at startPoint]

# Params

- filePath : The location and name of the file you want to play. If you specify a name but not a location, LiveCode assumes the file is in the defaultFolder. - startPoint : This is the number of the interval where the selection begins. (The number of intervals per second is specified by the player's timeScale property. The total number of intervals is given in the player's duration property.)

# Examples

prepare videoClip "/Disk/Folder/Movie" at 100,100

prepare videoClip ID 17 looping

# Description

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

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.

# Tags

# See

- **property:** frameRate - **command:** play - **function:** movie - **glossary:** parameter, command, loaded into memory, execute