Flash Asset Xtra getError()

The Flash cast member’s state of member property is set to −1 if an error occurs while a cast member is streaming into memory.

if the state of member flashMember = −1 then
  put getError(member flashMember)
end if

Table E-5 shows the code returned by getError() for a Flash cast member.

This requires the Flash Asset Xtra.

Table E-5. Flash Asset Xtra Error Codes

getError()

Meaning

FALSE

No error occurred (Sucess).

#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.

Get Lingo in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.