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
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...