User Guide

416 Chapter 12: Methods
If the specified network operation was getNetText(), the text is the text of the file on
the network.
If the specified network operation was
postNetText, the result is the server’s response.
After the next operation starts, Director discards the results of the previous operation to
conserve memory.
When a movie plays back as an applet, this function returns valid results for the last 10 requests.
When a movie plays back as a movie with Shockwave content, this function returns valid results
for only the most recent
getNetText() operation.
Parameters
netID
Optional. Specifies the ID of the network operation that contains the text to return.
Example
This handler uses the "netDone and netError" functions to test whether the last network
operation finished successfully. If the operation is finished, text returned by
netTextResult is
displayed in the field cast member Display Text.
-- Lingo syntax
global gNetID
on exitFrame
if (netDone(gNetID) = TRUE) and (netError(gNetID) = "OK") then
member("Display Text").text = netTextResult()
end if
end
// JavaScript syntax
global gNetID;
function exitFrame() {
if (netDone(gNetID) && (netError(gNetID) == "OK")) {
member("Display Text").text = netTextResult();
}
}
See also
netDone(), netError(), postNetText
new()
Usage
new(type)
new(type, castLib whichCast)
new(type, member whichCastMember of castLib whichCast)
variableName = new(parentScript arg1, arg2, ...)
new(script parentScriptName, value1, value2, ...)
timeout("name").new(timoutPeriod, #timeoutHandler, {, targetObject})
new(xtra "xtraName")
Description
Function; creates a new cast member, child object, timeout object, or Xtra instance and allows
you to assign of individual property values to child objects.