499
preLoadMode
Syntax
castLib(
whichCast
).preLoadMode
the preLoadMode of castLib
whichCast
Description
Cast member 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:
•
0—Load cast when needed.
•
1—Load cast before frame 1.
•
2—Load 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
preLoadMovie
Syntax
preLoadMovie
whichMovie
Description
Command; preloads the data and cast members associated with the first frame of the specified
movie. Preloading a movie helps it start faster when it is started by a
go to movie
or
play movie
command.
To preload cast members from a URL, use
preloadNetThing() to
load the cast members
directly into the cache, or use
downLoadNetThing
to load a movie on a local disk from which you
can load the movie into memory and minimize downloading time.
Example
This statement preloads the movie Introduction, which is located in the same folder as the
current movie:
preLoadMovie "Introduction"
Summary of Contents for DIRECTOR MX-LINGO DICTIONARY
Page 1: ...Lingo Dictionary Macromedia Director MX...
Page 756: ...Index 756...