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
0
OK
1
memory
2
network
3
playback device
99
other
Содержание DIRECTOR MX 2004-DIRECTOR SCRIPTING
Страница 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Страница 48: ...48 Chapter 2 Director Scripting Essentials...
Страница 100: ...100 Chapter 4 Debugging Scripts in Director...
Страница 118: ...118 Chapter 5 Director Core Objects...
Страница 594: ...594 Chapter 12 Methods...
Страница 684: ...684 Chapter 14 Properties See also DVD...
Страница 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Страница 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Страница 889: ...netPresent 889 _player alert Sorry the Network Support Xtras could not be found See also Player...
Страница 1102: ...1102 Chapter 14 Properties...