Chapter 3
114
cacheDocVerify()
Syntax
cacheDocVerify
#setting
cacheDocVerify()
Description
Function; sets how often the contents of a page on the Internet are refreshed with information
from the projector’s cache. Possible values are
#once
(default) and
#always
.
Specifying
#once
tells a movie to get a file from the Internet once and then use the file from the
cache without looking for an updated version on the Internet.
Specifying
#always
tells a movie to try to get an updated version of the file each time the movie
calls a URL.
The form
cacheDocVerify()
returns the current setting of the cache.
The
cacheDocVerify
function is valid only for movies running in Director or as projectors. This
function is not valid for Shockwave movies because they use the network settings of the browser
in which they run.
on resetCache
current = cacheDocVerify()
if current = #once then
alert "Turning cache verification on"
cacheDocVerify #always
end if
end
See also
cacheSize()
,
clearCache
cacheSize()
Syntax
cacheSize
Size
cacheSize()
Description
Function and command; sets the cache size of Director. The value is in kilobytes.
The
cacheSize
function is valid only for movies running in Director or as projectors. This
function is not valid for Shockwave movies because they use the network settings of the browser
in which they run.
Example
This handler checks whether the browser’s cache setting is less than 1 MB. If it is, the handler
displays an alert and sets the cache size to 1 MB:
on checkCache if
cacheSize()<1000 then
alert "increasing cache to 1MB"
cacheSize 1000
end if
end
See also
cacheDocVerify()
,
clearCache
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...