User Guide

330 Chapter 12: Methods
Possible getError() integer values and corresponding getErrorString() messages are:
Parameters
None.
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:
-- Lingo syntax
on exitFrame
if member("Norma Desmond Speaks").getError() <> 0 then
member("Display Error Name").text = member("Norma Desmond \
Speaks").getErrorString()
end if
end
// JavaScript syntax
function exitFrame() {
var memNor = member("Norma Desmond Speaks").getError();
if (memNor != 0) {
member("Display Error Name").text =
member("Norma Desmond Speaks").getErrorString();
}
}
See also
getError() (Flash, SWA)
getFinderInfo()
Usage
-- Lingo syntax
fileioObjRef.getFinderInfo()
// JavaScript syntax
fileioObjRef.getFinderInfo();
Description
Fileio method (Macintosh only); Returns the finder information for an open file.
You must first open a file by calling
openFile() before using getFinderInfo() to return the
files finder information.
getError() value getErrorString() message
0OK
1memory
2network
3playback device
99 other