Lingo Dictionary > D-F > downloadNetThing |  |

downloadNetThing

Syntax

    downloadNetThing URL, localFile

Description

Command; copies a file from the Internet to a file on the local disk, while the current movie continues playing. Use `netDone` to find out whether downloading is finished.

| `URL—`The file name of any object that can be downloaded: for example, an FTP or HTTP server, an HTML page, an external cast member, a Director movie, or a graphic
| `localFile—`The pathname and file name for the file on the local disk

Director movies in authoring mode and projectors support the `downLoadNetThing` command, but the Shockwave player does not. This protects users from unintentionally copying files from the Internet.

Although many network operations can be active at one time, running more than four concurrent operations usually slows down performance unacceptably.

Neither the Director movie's cache size nor the setting for the Check Documents option affects the behavior of the `downloadNetThing` command.

Executing any network Lingo operations concurrently with a Shockwave Audio (SWA) stream can cause interruptions in the playback of the SWA stream.

Note: Director for Java does not support the downloadNetThing command.

Example

These statements download an external cast member from a URL to the Director application folder and then make that file the external cast member named Cast of Thousands:

    downLoadNetThing("http://www.cbDeMille.com/Thousands.cst", the  \ applicationPath&"Thousands.Cst")
    castLib("Cast of Thousands").fileName = the applicationPath&"Thousands.Cst"

See also

`importFileInto, netDone(), preloadNetThing()`