
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 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 prompts a security dialog asking for permission to perform
the operation.
•
Searching for files on a user’s 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.
Summary of Contents for DIRECTOR MX 2004-USING DIRECTOR
Page 1: ...DIRECTOR MX 2004 Using Director...
Page 16: ...16 Chapter 1 Introduction...
Page 82: ...82 Chapter 3 Sprites...
Page 98: ...98 Chapter 4 Animation...
Page 134: ...134 Chapter 5 Bitmaps...
Page 242: ...242 Chapter 10 Sound and Synchronization...
Page 274: ...274 Chapter 11 Using Digital Video...
Page 290: ...290 Chapter 12 Behaviors...
Page 302: ...302 Chapter 13 Navigation and User Interaction...
Page 334: ...334 Chapter 15 The 3D Cast Member 3D Text and 3D Behaviors...
Page 392: ...392 Chapter 16 Working with Models and Model Resources...
Page 418: ...418 Chapter 18 Movies in a Window...
Page 446: ...446 Chapter 22 Managing and Testing Director Projects...