Lingo Dictionary > G-K > getErrorString() |
![]() ![]() ![]() |
getErrorString()
Syntax
member(
whichCastMember
). getErrorString()
getErrorString(member
whichCastMember
)
Description
Function; for Shockwave Audio (SWA) cast members, returns the error message string that corresponds to the error value returned by the getError()
function.
Possible getError()
integer values and corresponding getErrorString()
messages are:
getError() value |
getErrorString() message |
---|---|
0 |
OK |
1 |
memory |
2 |
network |
3 |
playback device |
99 |
other |
Example
This handler uses getError()
to determine whether an error occurred for Shockwave Audio cast member Norma Desmond Speaks, and if so, uses getErrorString
to obtain the error message and assign it to a field cast member:
on exitFrame if member("Norma Desmond Speaks").getError() <> 0 then member("Display Error Name").text = member("Norma Desmond \ Speaks").getErrorString() end if end
See also
![]() ![]() ![]() |