User Guide
preLoadMode 935
Example
This statement lets the user stop the preloading of cast members by pressing keys or clicking the
mouse button:
-- Lingo syntax
_movie.preLoadEventAbort = TRUE
// JavaScript syntax
_movie.preLoadEventAbort = true;
See also
Movie
preLoadMode
Usage
-- Lingo syntax
castObjRef.preLoadMode
// JavaScript syntax
castObjRef.preLoadMode;
Description
Cast library property; determines the preload mode of a specified cast library. Read/write.
Valid values of
preLoadMode are:
• 0. Load the cast library when needed. This is the default value.
• 1. Load the cast library before frame 1.
• 2. Load the cast library after frame 1.
Setting this property has the same effect as setting Load Cast in the Cast Properties dialog box.
Example
The following statement tells Director to load the members of the cast named Buttons before the
movie enters frame 1:
-- Lingo syntax
castLib("Buttons").preLoadMode = 1
// JavaScript syntax
castLib("Buttons").preLoadMode = 1;
See also
Cast Library