Lingo Dictionary > L-N > loaded |  |

loaded

Syntax

    member(whichCastMember).loaded
    the loaded of member whichCastMember

Description

Cast member property; specifies whether the cast member specified by `whichCastMember` is loaded into memory (`TRUE`) or not (`FALSE`).

Different cast member types have slightly different behaviors for loading:

| Shape and script cast members are always loaded into memory.
| Movie cast members are never unloaded.
| Digital video cast members can be preloaded and unloaded independent of whether they are being used. (A digital video cast member plays faster from memory than from disk.)

This property can be tested but not set.

Example

This statement checks whether cast member Demo Movie is loaded in memory and if it isn't, goes to an alternative movie:

    if member("Demo Movie").loaded = FALSE then go to movie("Waiting")"

See also

`preLoad (command)`, `ramNeeded(), size, unLoad`