#42001/1/8 23:11:32
我大部分已译完,并已贴了出来,但是还有一些由于水平有限,怎么也译不出来。
现在反它贴出来,请高手帮个忙,反它译完,谢谢
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()
netPresent 331
netLastModDate()
语法:
netLastModDate()
描述:
函数,返回网上指定项目最后被修改的日期时间,返回值是一字符串,这一字串是通用的格林尼治标准时间格式:
Ddd, nn Mmm yyyy hh:mm:ss GMT (例如:Thu, 30 Jan 1997 12:00:00 AM GMT)。There are variations
where days or months are spelled completely. 日和月
这个字符串总是英语。函数 netLastModDate 往往是在 netDone 和 netError 报告操作完成和成功之后调用。
下一个操作开始后,Director影片或放映机就会丢弃结果从上一个操作占用的内存中。
实际的日期是直接从HTTP服务器上取回的。然而这个字符并不总是能得到的,如果这样 netlastModDate 返回是EMPTY
当影片像 applet 那样播放时,这个函数的日期格式可以是不同的日期格式,
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 Xtras needed to access the Internet are
available but does not report whether an Internet connection is currently active.
If the Net Support Xtras are not available, netPresent will function properly, but
netPresent() will cause a script error
Example
This statement sends an alert if the Xtras are not available:
if not (the netPresent) then
alert "Sorry, the Network Support Xtras could not be found."
end if
netStatus 332
netStatus
Syntax
netStatus msgString
Description
Command; displays the specified string in the status area of the browser window.
The netStatus command doesn't work in projectors.
Example
This statement would place the string "This is a test" in the status area of the
browser the movie is running in:
on exitFrame
netStatus "This is a test"
end
netTextResult()
Syntax
netTextResult(netID)
netTextResult()
Description
Function; returns the text obtained by the specified network operation. If no net
ID is specified, netTextResult returns the result of the last network operation.
If the specified network operation was getNetText(), the text is the text of the file on
the network.
If the specified network operation was postNetText, the result is the server's
response.
After the next operation starts, Director discards the results of the previous
operation to conserve memory.
When a movie plays back as an applet, this function returns valid results for the
last 10 requests. When a movie plays back as a Shockwave movie, this function
returns valid results for only the most recent getNetText() operation.
Example
This handler uses the "netDone and netDone" functions to test whether the last
network operation finished successfully. If the operation is finished, text returned
by netTextResult is displayed in the field cast member Display Text.
global gNetID
on exitFrame
if (netDone(gNetID) = TRUE) and (netError(gNetID) = "OK") then
member("Display Text").text = netTextResult()
end if
end
See also
netDone(), netError(), postNetText
new()333
netThrottleTicks
Syntax
the netThrottleTicks
Description
System property; in the Macintosh authoring environment, allows you to control
the frequency of servicing to a network operation.
The default value is 15. The higher the value is set, the smoother the movie
playback and animation is, but less time is spent servicing any network activity. A
low setting allows more time to be spent on network operations, but will adversely
affect playback and animation performance.
This property only affects the authoring environment and projectors on the
Macintosh. It is ignored on Windows or Shockwave on the Mac.
nudge
Syntax
sprite(whichQTVRSprite).nudge(#direction )
nudge(sprite whichQTVRSprite, #direction)
Description
QuickTime VR command; nudges the view perspective of the specified
QuickTime VR sprite in the direction specified by #direction. Possible values for
#direction are #down, #downLeft, #downRight, #left, #right, #up, #upLeft, and
#upRight. Nudging to the right causes the image of the sprite to move to the left.
The nudge command has no return value.
Example
This handler causes the perspective of the QTVR sprite to move to the left as long
as the mouse is held down on the sprite.
on mouseDown me
repeat while the stillDown
sprite(1).nudge(#left)
end repeat
end