User Guide

Using Lingo or JavaScript syntax in different Internet environments 477
To determine the state of a network operation that retrieves data:
Use the Lingo on streamStatus event handler or the JavaScript streamStatus function.
For more information, 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 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.
In general, the following Lingo or JavaScript syntax features are unsupported because of Internet
security concerns:
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 users 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 prompts a security dialog asking for permission to perform
the operation.
Searching for files on a users system with getNthFileNameInFolder(),
searchCurrentFolder(), or searchPath().
The permanent downloading of files from a URL to the user's local drive using
downloadNetThing() is disabled in Shockwave due to security concerns. This function works
in authoring and projectors.
Using URLs with Lingo or JavaScript syntax
In addition to the Lingo or JavaScript syntax that is explicitly intended for use with network
operations, some script elements can use URLs as references to external files.
The following Lingo or JavaScript syntax elements can use URLs as file references in all
circumstances:
moviePath
pathName
unloadMovie
Note: You can also set the fileName of cast members to URLs and link to external media assets.