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.
Summary of Contents for DIRECTOR MX 2004
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...