getErrorString()
329
// JavaScript syntax
function CheckFlashStatus() {
var errorCheck = member("Dali").getError();
if (errorCheck != 0) {
if (errorCheck = "memory") {
member("Dali").clearError();
unloadCast();
_movie.go("Artists");
} else {
_movie.go("Sorry");
}
}
}
See also
clearError()
,
getErrorString()
,
state (Flash, SWA)
getError() (XML)
Usage
parserObject
.getError()
Description
Function; returns the descriptive error string associated with a given error number (including the
line and column number of the XML where the error occurred). When there is no error, this
function returns
<VOID>
.
Parameters
None.
Example
These statements check an error after parsing a string containing XML data:
errCode = parserObj.parseString(member("XMLtext").text)
errorString = parserObj.getError()
if voidP(errorString) then
-- Go ahead and use the XML in some way
else
alert "Sorry, there was an error " & errorString
-- Exit from the handler
exit
end if
getErrorString()
Usage
-- Lingo syntax
memberObjRef
.getErrorString()
// JavaScript syntax
memberObjRef
.getErrorString();
Description
Function; for Shockwave Audio (SWA) cast members, returns the error message string that
corresponds to the error value returned by the
getError()
function.
Содержание 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...