User Guide
476 Chapter 24: Using Shockwave Player
The gotoNetPage method is similar to the Director open method. It does not return a value.
To preload a file from the server into the browser’s cache:
• Use the preloadNetThing() method. For more information about this method, see the
Scripting Reference topics in the Director Help Panel.
The
preloadNetThing() method initiates downloading a linked movie asset into the cache,
where it is available for later use. Director can later preload the asset into memory without a
download delay.
The current movie continues playing while preloading occurs.
To test whether getNetText(), preloadNetThing, or gotoNetMovie operations are complete:
• Use the netDone() method.
• Use the getStreamStatus() method.
For more information about these methods, see the Scripting Reference topics in the Director
Help Panel.
To post information using HTTP post/get abilities to a server and retrieve a response:
• Use the getNetText() or postNetText() methods. You can use either method to post data to
a server, but HTTP
"get" commands can only post a limited amount of information
compared with HTTP
"post" operations. If you are posting a great deal of information, the
postNetText() method is recommended.
For more information about these methods, see the Scripting Reference topics in the Director
Help Panel.
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.
To 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.
To 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.
To 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.