Using Director > Playing Movies over the Internet > Retrieving network operation results with Lingo

 

Retrieving network operation results with Lingo

Lingo 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.

A returned network ID is for the network operation whose results are being retrieved.

To retrieve the text result of a network operation:

Use the netTextResult() function. See netTextResult().

To retrieve the "date last modified" string from the HTTP header for a specific item:

Use the netLastModDate() function. See netLastModDate().

To obtain the MIME type of the HTTP item:

Use the netMIME() function. See netMIME().

To conserve memory, Director discards the results of the netTextResult(), netDone(), netError(), netMIME(), and netLastModDate() functions within a short time after the operation completes successfully.

For netTextResult(), Director discards the results when the next operation starts.

For the other functions, Director retains the results through seven subsequent network operations.

To determine the state of a network operation that retrieves data:

Use the getStreamStatus() function or the on streamStatus event handler. See getStreamStatus() or on streamStatus.