preloadNetThing()
469
preLoadMovie()
Usage
-- Lingo syntax
_movie.preLoadMovie(
stringMovieName
)
// JavaScript syntax
_movie.preLoadMovie(
stringMovieName
);
Description
Movie method; 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 the
go()
or
play()
methods.
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.
Parameters
stringMovieName
Required. A string that specifies the name of the movie to preload.
Example
This statement preloads the movie Introduction, which is located in the same folder as the
current movie:
-- Lingo syntax
_movie.preLoadMovie("Introduction")
// JavaScript syntax
_movie.preLoadMovie("Introduction");
See also
downloadNetThing
,
go()
,
Movie
,
preloadNetThing()
preloadNetThing()
Usage
preloadNetThing (
url
)
Description
Function; preloads a file from the Internet to the local cache so it can be used later without a
download delay. The return value is a network ID that you can use to monitor the progress of
the operation.
The
preloadNetThing()
function downloads the file while the current movie continues playing.
Use
netDone()
to find out whether downloading is finished.
After an item is downloaded, it can be displayed immediately because it is taken from the local
cache rather than from the network.
Although many network operations can be active at a time, running more than four concurrent
operations usually slows down performance unacceptably.
Neither the cache size nor the Check Documents option in a browser’s preferences affects the
behavior of the
preloadNetThing
function.
Summary of Contents for DIRECTOR MX 2004
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...