User Guide

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 browsers preferences affects the
behavior of the
preloadNetThing function.