263
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.
Examples
This handler uses
getError
to determine whether an error involving the Shockwave Audio cast
member Norma Desmond Speaks occurred and displays the appropriate error string in a field if it did:
on exitFrame
if member("Norma Desmond Speaks").getError() <> 0 then
member("Display Error Name").text = member("Norma Desmond \
Speaks").getErrorString()
end if
end
getError() value
getErrorString() message
0
OK
1
memory
2
network
3
playback device
99
other
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...