User Guide

418
netAbort
Syntax
netAbort(URL)
netAbort(netID)
Description
Command; cancels a network operation without waiting for a result.
Using a network ID is the most efficient way to stop a network operation. The ID is returned
when you use a network function such as
getNetText() or postNetText().
In some cases, when a network ID is not available, you can use a URL to stop the transmission of
data for that URL. The URL must be identical to that used to begin the network operation. If the
data transmission is complete, this command has no effect.
Example
This statement passes a network ID to netAbort to cancel a particular network operation:
on mouseUp
netAbort(myNetID)
end
See also
getNetText(), postNetText
netDone()
Syntax
netDone()
netDone(netID)
Description
Function; indicates whether a background loading operation (such as getNetText,
preloadNetThing, gotoNetMovie
, gotoNetPage, or putNetText) is finished or was
terminated by a browser error (
TRUE, default) or is still in progress (FALSE).
Use netDone() to test the last network operation.
Use netDone(netID) to test the network operation identified by netID.
The
netDone function returns 0 when a background loading operation is in progress.
Examples
The following handler uses the netDone function to test whether the last network operation has
finished. If the operation is finished, text returned by
netTextResult is displayed in the field cast
member Display Text.
on exitFrame
if netDone() = 1 then
member("Display Text").text = netTextResult()
end if
end