Code

public enum Code

Error code. Matches values of FREResult

  • ok

    The function succeeded.

    Declaration

    Swift

    case ok
  • The name of a class, property, or method passed as a parameter does not match an ActionScript class name, property, or method.

    Declaration

    Swift

    case noSuchName
  • An FREObject parameter is invalid. For examples of invalid FREObject variables, see FREObject validity.

    Declaration

    Swift

    case invalidObject
  • An FREObject parameter does not represent an object of the ActionScript class expected by the called function.

    Declaration

    Swift

    case typeMismatch
  • An ActionScript error occurred, and an exception was thrown. The C API functions that can result in this error allow you to specify an FREObject to receive information about the exception.

    Declaration

    Swift

    case actionscriptError
  • A pointer parameter is NULL.

    Declaration

    Swift

    case invalidArgument
  • The function attempted to modify a read-only property of an ActionScript object.

    Declaration

    Swift

    case readOnly
  • The method was called from a thread other than the one on which the runtime has an outstanding call to a native extension function.

    Declaration

    Swift

    case wrongThread
  • A call was made to a native extensions C API function when the extension context was in an illegal state for that call. This return value occurs in the following situation. The context has acquired access to an ActionScript BitmapData or ByteArray class object. With one exception, the context can call no other C API functions until it releases the BitmapData or ByteArray object. The one exception is that the context can call FREInvalidateBitmapDataRect() after calling FREAcquireBitmapData() or FREAcquireBitmapData2().

    Declaration

    Swift

    case illegalState
  • The runtime could not allocate enough memory to change the size of an Array or Vector object.

    Declaration

    Swift

    case insufficientMemory