ADOBE DIRECTOR 11.0
User Guide
469
Retrieving network operation results with Lingo or
JavaScript syntax
Lingo or JavaScript syntax can retrieve network operation results, such as a text result, a unique identifier for a
network operation, a file’s MIME type, and the date an HTTP item was last modified.
Retrieve the text result of a network operation
•
Use the
netTextResult()
method. For more information about this method, see the Scripting Reference topics
in the Director Help Panel.
Retrieve the “date last modified” string from the HTTP header for a specific item
•
Use the
netLastModDate()
method. For more information about this method, see the Scripting Reference
topics in the Director Help Panel.
Obtain the MIME type of the HTTP item
•
Use the
netMIME()
method. For more information about this method, see the Scripting Reference topics in the
Director Help Panel.
The results of the
netTextResult()
,
netDone()
,
netError()
,
netMIME()
, and
netLastModDate()
methods are
retained until normal memory clean-up is needed.
Determine the state of a network operation that retrieves data
•
Use the
Lingo on streamStatus
event handler or the
JavaScript streamStatus
function. For more infor-
mation, see the Scripting Reference topics in the Director Help Panel.
Using Lingo or JavaScript syntax in different Internet
environments
Some Lingo or JavaScript syntax features behave differently, depending on whether the movie is playing back in a
browser, as a projector, or within the authoring environment.
Using Lingo or JavaScript syntax with Internet security restrictions
Because of Internet security issues for movies that play back in browsers, the following Lingo or JavaScript syntax
features are unsupported for Shockwave movies playing in a browser:
•
Setting
colorDepth()
for the user’s monitor
•
Saving a movie by using the
saveMovie()
method
•
Printing by using the
printFrom()
method
•
Opening an application by using the
open()
method
•
Stopping an application or the user’s computer by using the
quit()
,
restart()
, or
shutDown()
method
•
Opening a local file that is not in the dswmedia folder or a subfolder of the dswmedia folder
•
Pasting content from the Clipboard by using the
pasteClipBoardInto()
or the
copyToClipboard
method
yields a security prompt