421
netMIME()
Syntax
netMIME()
Description
Function; provides the MIME type of the Internet file that the last network operation returned
(the most recently downloaded HTTP or FTP item).
The
netMIME
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.
Example
This handler checks the MIME type of an item downloaded from the Internet and
responds accordingly:
on checkNetOperation theURL
if netDone (theURL) then
set myMimeType = netMIME()
case myMimeType of
"image/jpeg": go frame "jpeg info"
"image/gif": go frame "gif info"
"application/x-director": goToNetMovie theURL
"text/html": goToNetPage theURL
otherwise: alert "Please choose a different item."
end case
else
go the frame
end if
end
See also
netDone()
,
netError()
,
getNetText()
,
postNetText
,
preloadNetThing()
netPresent
Syntax
netPresent()
the netPresent
Description
System property; determines whether the Xtra extensions needed to access the Internet are
available but does not report whether an Internet connection is currently active.
If the Net Support Xtra extensions are not available,
netPresent
will function properly, but
netPresent()
will cause a script error
Example
This statement sends an alert if the Xtra extensions are not available:
if not (the netPresent) then
alert "Sorry, the Network Support Xtras could not be found."
end if
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...