Lingo Dictionary > O-R > preLoadBuffer() |  |

preLoadBuffer()

Syntax

    member(whichCastMember).preLoadBuffer()
    preLoadBuffer member whichCastMember

Description

Command; preloads part of a specified Shockwave Audio (SWA) file into memory. The amount preloaded is determined by the `preLoadTime` property. This command works only if the SWA cast member is stopped.

When the `preLoadBuffer()` command succeeds, the`state` member property equals 2.

Most SWA cast member properties can be tested only after the `preLoadBuffer()` command has completed successfully. These properties include: `cuePointNames`, `cuePointTimes`, `currentTime`, `duration`, `percentPlayed`, `percentStreamed`, `bitRate`, `sampleRate`, and `numChannels`.

Example

This statement loads the cast member Mel Torme into memory:

    member("Mel Torme").preLoadBuffer()

See also

`preLoadTime`