Lingo Dictionary > O-R > preLoadMode |
![]() ![]() ![]() |
preLoadMode
Syntax
castLib(
whichCast
).preLoadMode
the preLoadMode of castLib
whichCast
Description
Cast property; determines the specified cast's preload mode and has the same effect as setting Load Cast in the Cast Properties dialog box. Possible values are the following:
![]() |
0Load cast when needed. |
![]() |
1Load cast before frame 1. |
![]() |
2Load cast after frame 1. |
The default value for cast members is 0, when needed.
An on prepareMovie
handler is usually a good place for Lingo that determines when cast members are loaded.
This property can be tested and set.
Example
The following statement tells Director to load the members of the cast Buttons before the movie enters frame 1:
CastLib("Buttons").preLoadMode = 1
![]() ![]() ![]() |