User Guide
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.