User Guide

getError() (Flash, SWA) 327
You can also use the bracket list access:
firstPerson = employeeInfoList[1]
put firstPerson
-- ["Dennis", "consulting", 510]
firstPersonDept = firstPerson[2]
put firstPersonDept
-- "consulting"
As with getAt, brackets can be nested:
firstPersonDept = employeeInfoList[1][2]
See also
getaProp, setaProp, setAt
getError() (Flash, SWA)
Usage
-- Lingo syntax
memberObjRef.getError()
// JavaScript syntax
memberObjRef.getError();
Description
Function; for Shockwave Audio (SWA) or Flash cast members, indicates whether an error
occurred as the cast member streamed into memory and returns a value.
Shockwave Audio cast members have the following possible
getError() integer values and
corresponding
getErrorString() messages:
Flash movie cast members have the following possible
getError values:
FALSE—No error occurred.
#memory—There is not enough memory to load the cast member.
#fileNotFound—The file containing the cast member’s assets could not be found.
#network—A network error prevented the cast member from loading.
#fileFormat—The file was found, but it appears to be of the wrong type, or an error occurred
while reading the file.
#other—Some other error occurred.
When an error occurs as a cast member streams into memory, Director sets the cast member’s
state property to -1. Use the
getError function to determine what type of error occurred.
getError() value getErrorString() message
0OK
1memory
2network
3playback device
99 other