410
Chapter 12: Methods
netAbort
Usage
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.
Parameters
URL
Required. Specifies the URL to cancel.
netID
Optional. Specifies the ID of the network operation to cancel.
Example
This statement passes a network ID to
netAbort
to cancel a particular network operation:
-- Lingo syntax
on mouseUp
netAbort(myNetID)
end
// JavaScript syntax
function mouseUp() {
netAbort(myNetID);
}
See also
getNetText()
,
postNetText
netDone()
Usage
netDone()
netDone(
netID
)
Description
Function; indicates whether a background loading operation (such as
getNetText,
preloadNetThing, gotoNetMovie
,
gotoNetPage
, or
netTextResult
) 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.
Содержание DIRECTOR MX 2004-DIRECTOR SCRIPTING
Страница 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Страница 48: ...48 Chapter 2 Director Scripting Essentials...
Страница 100: ...100 Chapter 4 Debugging Scripts in Director...
Страница 118: ...118 Chapter 5 Director Core Objects...
Страница 594: ...594 Chapter 12 Methods...
Страница 684: ...684 Chapter 14 Properties See also DVD...
Страница 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Страница 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Страница 889: ...netPresent 889 _player alert Sorry the Network Support Xtras could not be found See also Player...
Страница 1102: ...1102 Chapter 14 Properties...