420
When a movie plays back as an applet, this function always returns a string. The string either
has a length of 0 or consists of text that describes an error. The string’s content comes from Java
and can vary on different operating systems or browsers. The text may not be translated into the
local language.
Example
This statement passes a network ID to
netError
to check the error status of a particular
network operation:
on exitFrame
global mynetID
if netError(mynetID)<>"OK" then beep
end
netLastModDate()
Syntax
netLastModDate()
Description
Function; returns the date last modified from the HTTP header for the specified item. The string
is in Universal Time (GMT) format:
Ddd, nn Mmm yyyy hh:mm:ss
GMT
(for example, Thu, 30
Jan 1997 12:00:00 AM GMT). There are variations where days or months are spelled completely.
The string is always in English.
The
netLastModDate
function can be called only after
netDone
and
netError
report that the
operation is complete and successful. After the next operation starts, the Director movie or
projector discards the results of the previous operation to conserve memory.
The actual date string is pulled directly from the HTTP header in the form provided by the server.
However, this string is not always provided, and in that case
netLastModDate
returns
EMPTY
.
When a movie plays back as an applet, this function’s date format may differ from the date format
that Shockwave uses; the date is in the format that the Java function
Date.asString
returns. The
format may also vary on systems that use different languages.
Example
These statements check the date of a file downloaded from the Internet:
if netDone() then
theDate = netLastModDate()
if theDate.char[6..11] <> "Jan 30" then
alert "The file is outdated."
end if
end if
See also
netDone()
,
netError()
4165
Requested object could not be found (URL may be incorrect).
4166
Generic proxy failure.
4167
Transfer was intentionally interrupted by client.
4242
Download stopped by
netAbort(url)
.
4836
Download stopped for an unknown reason, possibly a network error, or the download was
abandoned.
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...