@awayfl/avm2
Version:
Virtual machine for executing AS3 code
384 lines • 86 kB
JavaScript
/* eslint-disable max-len */
import { Debug } from '@awayfl/swf-loader';
import { Settings } from './Settings';
export var Errors = {
/**
* AVM2 Error Codes
*/
// OutOfMemoryError : {code: 1000, message: "The system is out of memory."},
NotImplementedError: { code: 1001, message: 'The method %1 is not implemented.' },
InvalidPrecisionError: { code: 1002, message: 'Number.toPrecision has a range of 1 to 21. Number.toFixed and Number.toExponential have a range of 0 to 20. Specified value is not within expected range.' },
InvalidRadixError: { code: 1003, message: 'The radix argument must be between 2 and 36; got %1.' },
InvokeOnIncompatibleObjectError: { code: 1004, message: 'Method %1 was invoked on an incompatible object.' },
ArrayIndexNotIntegerError: { code: 1005, message: 'Array index is not a positive integer (%1).' },
CallOfNonFunctionError: { code: 1006, message: '%1 is not a function.' },
ConstructOfNonFunctionError: { code: 1007, message: 'Instantiation attempted on a non-constructor.' },
// AmbiguousBindingError : {code: 1008, message: "%1 is ambiguous; Found more than one matching binding."},
ConvertNullToObjectError: { code: 1009, message: 'Cannot access a property or method of a null object reference.' },
ConvertUndefinedToObjectError: { code: 1010, message: 'A term is undefined and has no properties.' },
// IllegalOpcodeError : {code: 1011, message: "Method %1 contained illegal opcode %2 at offset %3."},
// LastInstExceedsCodeSizeError : {code: 1012, message: "The last instruction exceeded code size."},
// FindVarWithNoScopeError : {code: 1013, message: "Cannot call OP_findproperty when scopeDepth is 0."},
ClassNotFoundError: { code: 1014, message: 'Class %1 could not be found.' },
// IllegalSetDxns : {code: 1015, message: "Method %1 cannot set default xml namespace"},
DescendentsError: { code: 1016, message: 'Descendants operator (..) not supported on type %1.' },
// ScopeStackOverflowError : {code: 1017, message: "Scope stack overflow occurred."},
// ScopeStackUnderflowError : {code: 1018, message: "Scope stack underflow occurred."},
// GetScopeObjectBoundsError : {code: 1019, message: "Getscopeobject %1 is out of bounds."},
// CannotFallOffMethodError : {code: 1020, message: "Code cannot fall off the end of a method."},
// InvalidBranchTargetError : {code: 1021, message: "At least one branch target was not on a valid instruction in the method."},
// IllegalVoidError : {code: 1022, message: "Type void may only be used as a function return type."},
StackOverflowError: { code: 1023, message: 'Stack overflow occurred.' },
// StackUnderflowError : {code: 1024, message: "Stack underflow occurred."},
// InvalidRegisterError : {code: 1025, message: "An invalid register %1 was accessed."},
// SlotExceedsCountError : {code: 1026, message: "Slot %1 exceeds slotCount=%2 of %3."},
// MethodInfoExceedsCountError : {code: 1027, message: "Method_info %1 exceeds method_count=%2."},
// DispIdExceedsCountError : {code: 1028, message: "Disp_id %1 exceeds max_disp_id=%2 of %3."},
// DispIdUndefinedError : {code: 1029, message: "Disp_id %1 is undefined on %2."},
// StackDepthUnbalancedError : {code: 1030, message: "Stack depth is unbalanced. %1 != %2."},
// ScopeDepthUnbalancedError : {code: 1031, message: "Scope depth is unbalanced. %1 != %2."},
CpoolIndexRangeError: { code: 1032, message: 'Cpool index %1 is out of range %2.' },
CpoolEntryWrongTypeError: { code: 1033, message: 'Cpool entry %1 is wrong type.' },
CheckTypeFailedError: { code: 1034, message: 'Type Coercion failed: cannot convert %1 to %2.' },
// IllegalSuperCallError : {code: 1035, message: "Illegal super expression found in method %1."},
CannotAssignToMethodError: { code: 1037, message: 'Cannot assign to a method %1 on %2.' },
// RedefinedError : {code: 1038, message: "%1 is already defined."},
// CannotVerifyUntilReferencedError : {code: 1039, message: "Cannot verify method until it is referenced."},
CantUseInstanceofOnNonObjectError: { code: 1040, message: 'The right-hand side of instanceof must be a class or function.' },
IsTypeMustBeClassError: { code: 1041, message: 'The right-hand side of operator must be a class.' },
InvalidMagicError: { code: 1042, message: 'Not an ABC file. major_version=%1 minor_version=%2.' },
// InvalidCodeLengthError : {code: 1043, message: "Invalid code_length=%1."},
// InvalidMethodInfoFlagsError : {code: 1044, message: "MethodInfo-%1 unsupported flags=%2."},
UnsupportedTraitsKindError: { code: 1045, message: 'Unsupported traits kind=%1.' },
// MethodInfoOrderError : {code: 1046, message: "MethodInfo-%1 referenced before definition."},
// MissingEntryPointError : {code: 1047, message: "No entry point was found."},
PrototypeTypeError: { code: 1049, message: 'Prototype objects must be vanilla Objects.' },
ConvertToPrimitiveError: { code: 1050, message: 'Cannot convert %1 to primitive.' },
// IllegalEarlyBindingError : {code: 1051, message: "Illegal early binding access to %1."},
InvalidURIError: { code: 1052, message: 'Invalid URI passed to %1 function.' },
// IllegalOverrideError : {code: 1053, message: "Illegal override of %1 in %2."},
// IllegalExceptionHandlerError : {code: 1054, message: "Illegal range or target offsets in exception handler."},
WriteSealedError: { code: 1056, message: 'Cannot create property %1 on %2.' },
// IllegalSlotError : {code: 1057, message: "%1 can only contain methods."},
// IllegalOperandTypeError : {code: 1058, message: "Illegal operand type: %1 must be %2."},
// ClassInfoOrderError : {code: 1059, message: "ClassInfo-%1 is referenced before definition."},
// ClassInfoExceedsCountError : {code: 1060, message: "ClassInfo %1 exceeds class_count=%2."},
// NumberOutOfRangeError : {code: 1061, message: "The value %1 cannot be converted to %2 without losing precision."},
WrongArgumentCountError: { code: 1063, message: 'Argument count mismatch on %1. Expected %2, got %3.' },
// CannotCallMethodAsConstructor : {code: 1064, message: "Cannot call method %1 as constructor."},
UndefinedVarError: { code: 1065, message: 'Variable %1 is not defined.' },
// FunctionConstructorError : {code: 1066, message: "The form function('function body') is not supported."},
// IllegalNativeMethodBodyError : {code: 1067, message: "Native method %1 has illegal method body."},
// CannotMergeTypesError : {code: 1068, message: "%1 and %2 cannot be reconciled."},
ReadSealedError: { code: 1069, message: 'Property %1 not found on %2 and there is no default value.' },
// CallNotFoundError : {code: 1070, message: "Method %1 not found on %2"},
// AlreadyBoundError : {code: 1071, message: "Function %1 has already been bound to %2."},
// ZeroDispIdError : {code: 1072, message: "Disp_id 0 is illegal."},
// DuplicateDispIdError : {code: 1073, message: "Non-override method %1 replaced because of duplicate disp_id %2."},
ConstWriteError: { code: 1074, message: 'Illegal write to read-only property %1 on %2.' },
// MathNotFunctionError : {code: 1075, message: "Math is not a function."},
// MathNotConstructorError : {code: 1076, message: "Math is not a constructor."},
// WriteOnlyError : {code: 1077, message: "Illegal read of write-only property %1 on %2."},
// IllegalOpMultinameError : {code: 1078, message: "Illegal opcode/multiname combination: %1<%2>."},
// IllegalNativeMethodError : {code: 1079, message: "Native methods are not allowed in loaded code."},
// IllegalNamespaceError : {code: 1080, message: "Illegal value for namespace."},
// ReadSealedErrorNs : {code: 1081, message: "Property %1 not found on %2 and there is no default value."},
// NoDefaultNamespaceError : {code: 1082, message: "No default namespace has been set."},
XMLPrefixNotBound: { code: 1083, message: 'The prefix "%1" for element "%2" is not bound.' },
// XMLBadQName : {code: 1084, message: "Element or attribute (\"%1\") does not match QName production: QName::=(NCName':')?NCName."},
XMLUnterminatedElementTag: { code: 1085, message: 'The element type "%1" must be terminated by the matching end-tag "</%2>".' },
XMLOnlyWorksWithOneItemLists: { code: 1086, message: 'The %1 method only works on lists containing one item.' },
XMLAssignmentToIndexedXMLNotAllowed: { code: 1087, message: 'Assignment to indexed XML is not allowed.' },
XMLMarkupMustBeWellFormed: { code: 1088, message: 'The markup in the document following the root element must be well-formed.' },
XMLAssigmentOneItemLists: { code: 1089, message: 'Assignment to lists with more than one item is not supported.' },
XMLMalformedElement: { code: 1090, message: 'XML parser failure: element is malformed.' },
XMLUnterminatedCData: { code: 1091, message: 'XML parser failure: Unterminated CDATA section.' },
XMLUnterminatedXMLDecl: { code: 1092, message: 'XML parser failure: Unterminated XML declaration.' },
XMLUnterminatedDocTypeDecl: { code: 1093, message: 'XML parser failure: Unterminated DOCTYPE declaration.' },
XMLUnterminatedComment: { code: 1094, message: 'XML parser failure: Unterminated comment.' },
// XMLUnterminatedAttribute : {code: 1095, message: "XML parser failure: Unterminated attribute."},
XMLUnterminatedElement: { code: 1096, message: 'XML parser failure: Unterminated element.' },
// XMLUnterminatedProcessingInstruction : {code: 1097, message: "XML parser failure: Unterminated processing instruction."},
XMLNamespaceWithPrefixAndNoURI: { code: 1098, message: 'Illegal prefix %1 for no namespace.' },
RegExpFlagsArgumentError: { code: 1100, message: 'Cannot supply flags when constructing one RegExp from another.' },
// NoScopeError : {code: 1101, message: "Cannot verify method %1 with unknown scope."},
// IllegalDefaultValue : {code: 1102, message: "Illegal default value for type %1."},
// CannotExtendFinalClass : {code: 1103, message: "Class %1 cannot extend final base class."},
// XMLDuplicateAttribute : {code: 1104, message: "Attribute \"%1\" was already specified for element \"%2\"."},
// CorruptABCError : {code: 1107, message: "The ABC data is corrupt, attempt to read out of bounds."},
InvalidBaseClassError: { code: 1108, message: 'The OP_newclass opcode was used with the incorrect base class.' },
// DanglingFunctionError : {code: 1109, message: "Attempt to directly call unbound function %1 from method %2."},
// CannotExtendError : {code: 1110, message: "%1 cannot extend %2."},
// CannotImplementError : {code: 1111, message: "%1 cannot implement %2."},
// CoerceArgumentCountError : {code: 1112, message: "Argument count mismatch on class coercion. Expected 1, got %1."},
// InvalidNewActivationError : {code: 1113, message: "OP_newactivation used in method without NEED_ACTIVATION flag."},
// NoGlobalScopeError : {code: 1114, message: "OP_getglobalslot or OP_setglobalslot used with no global scope."},
// NotConstructorError : {code: 1115, message: "%1 is not a constructor."},
// ApplyError : {code: 1116, message: "second argument to Function.prototype.apply must be an array."},
XMLInvalidName: { code: 1117, message: 'Invalid XML name: %1.' },
XMLIllegalCyclicalLoop: { code: 1118, message: 'Illegal cyclical loop between nodes.' },
// DeleteTypeError : {code: 1119, message: "Delete operator is not supported with operand of type %1."},
// DeleteSealedError : {code: 1120, message: "Cannot delete property %1 on %2."},
// DuplicateMethodBodyError : {code: 1121, message: "Method %1 has a duplicate method body."},
// IllegalInterfaceMethodBodyError : {code: 1122, message: "Interface method %1 has illegal method body."},
FilterError: { code: 1123, message: 'Filter operator not supported on type %1.' },
// InvalidHasNextError : {code: 1124, message: "OP_hasnext2 requires object and index to be distinct registers."},
OutOfRangeError: { code: 1125, message: 'The index %1 is out of range %2.' },
VectorFixedError: { code: 1126, message: 'Cannot change the length of a fixed Vector.' },
TypeAppOfNonParamType: { code: 1127, message: 'Type application attempted on a non-parameterized type.' },
WrongTypeArgCountError: { code: 1128, message: 'Incorrect number of type parameters for %1. Expected %2, got %3.' },
JSONCyclicStructure: { code: 1129, message: 'Cyclic structure cannot be converted to JSON string.' },
JSONInvalidReplacer: { code: 1131, message: 'Replacer argument to JSON stringifier must be an array or a two parameter function.' },
JSONInvalidParseInput: { code: 1132, message: 'Invalid JSON parse input.' },
// FileOpenError : {code: 1500, message: "Error occurred opening file %1."},
// FileWriteError : {code: 1501, message: "Error occurred writing to file %1."},
// ScriptTimeoutError : {code: 1502, message: "A script has executed for longer than the default timeout period of 15 seconds."},
// ScriptTerminatedError : {code: 1503, message: "A script failed to exit after 30 seconds and was terminated."},
// EndOfFileError : {code: 1504, message: "End of file."},
// StringIndexOutOfBoundsError : {code: 1505, message: "The string index %1 is out of bounds; must be in range %2 to %3."},
InvalidRangeError: { code: 1506, message: 'The specified range is invalid.' },
NullArgumentError: { code: 1507, message: 'Argument %1 cannot be null.' },
InvalidArgumentError: { code: 1508, message: 'The value specified for argument %1 is invalid.' },
ArrayFilterNonNullObjectError: { code: 1510, message: 'When the callback argument is a method of a class, the optional this argument must be null.' },
InvalidParamError: { code: 2004, message: 'One of the parameters is invalid.' },
ParamRangeError: { code: 2006, message: 'The supplied index is out of bounds.' },
NullPointerError: { code: 2007, message: 'Parameter %1 must be non-null.' },
InvalidEnumError: { code: 2008, message: 'Parameter %1 must be one of the accepted values.' },
CantInstantiateError: { code: 2012, message: '%1 class cannot be instantiated.' },
InvalidBitmapData: { code: 2015, message: 'Invalid BitmapData.' },
EOFError: { code: 2030, message: 'End of file was encountered.', fqn: 'flash.errors.EOFError' },
CompressedDataError: { code: 2058, message: 'There was an error decompressing the data.', fqn: 'flash.errors.IOError' },
EmptyStringError: { code: 2085, message: 'Parameter %1 must be non-empty string.' },
ProxyGetPropertyError: { code: 2088, message: 'The Proxy class does not implement getProperty. It must be overridden by a subclass.' },
ProxySetPropertyError: { code: 2089, message: 'The Proxy class does not implement setProperty. It must be overridden by a subclass.' },
ProxyCallPropertyError: { code: 2090, message: 'The Proxy class does not implement callProperty. It must be overridden by a subclass.' },
ProxyHasPropertyError: { code: 2091, message: 'The Proxy class does not implement hasProperty. It must be overridden by a subclass.' },
ProxyDeletePropertyError: { code: 2092, message: 'The Proxy class does not implement deleteProperty. It must be overridden by a subclass.' },
ProxyGetDescendantsError: { code: 2093, message: 'The Proxy class does not implement getDescendants. It must be overridden by a subclass.' },
ProxyNextNameIndexError: { code: 2105, message: 'The Proxy class does not implement nextNameIndex. It must be overridden by a subclass.' },
ProxyNextNameError: { code: 2106, message: 'The Proxy class does not implement nextName. It must be overridden by a subclass.' },
ProxyNextValueError: { code: 2107, message: 'The Proxy class does not implement nextValue. It must be overridden by a subclass.' },
// InvalidArrayLengthError : {code: 2108, message: "The value %1 is not a valid Array length."},
// ReadExternalNotImplementedError : {code: 2173, message: "Unable to read object in stream. The class %1 does not implement flash.utils.IExternalizable but is aliased to an externalizable class."},
/**
* Player Error Codes
*/
// NoSecurityContextError : { code: 2000, message: "No active security context."},
TooFewArgumentsError: { code: 2001, message: 'Too few arguments were specified; got %1, %2 expected.' },
// InvalidSocketError : { code: 2002, message: "Operation attempted on invalid socket."},
// InvalidSocketPortError : { code: 2003, message: "Invalid socket port number specified."},
ParamTypeError: { code: 2005, message: 'Parameter %1 is of the incorrect type. Should be type %2.' },
// HasStyleSheetError : { code: 2009, message: "This method cannot be used on a text field with a style sheet."},
// SocketLocalFileSecurityError : { code: 2010, message: "Local-with-filesystem SWF files are not permitted to use sockets."},
SocketConnectError: { code: 2011, message: 'Socket connection failed to %1:%2.' },
// AuthoringOnlyFeatureError : { code: 2013, message: "Feature can only be used in Flash Authoring."},
// FeatureNotAvailableError : { code: 2014, message: "Feature is not available at this time."},
// InvalidBitmapDataError : { code: 2015, message: "Invalid BitmapData."},
// SystemExitSecurityError : { code: 2017, message: "Only trusted local files may cause the Flash Player to exit."},
// SystemExitUnsupportedError : { code: 2018, message: "System.exit is only available in the standalone Flash Player."},
// InvalidDepthError : { code: 2019, message: "Depth specified is invalid."},
// MovieClipSwapError : { code: 2020, message: "MovieClips objects with different parents cannot be swapped."},
// ObjectCreationError : { code: 2021, message: "Object creation failed."},
// NotDisplayObjectError : { code: 2022, message: "Class %1 must inherit from DisplayObject to link to a symbol."},
// NotSpriteError : { code: 2023, message: "Class %1 must inherit from Sprite to link to the root."},
CantAddSelfError: { code: 2024, message: 'An object cannot be added as a child of itself.' },
NotAChildError: { code: 2025, message: 'The supplied DisplayObject must be a child of the caller.' },
// NavigateURLError : { code: 2026, message: "An error occurred navigating to the URL %1."},
// MustBeNonNegativeError : { code: 2027, message: "Parameter %1 must be a non-negative number; got %2."},
// LocalSecurityError : { code: 2028, message: "Local-with-filesystem SWF file %1 cannot access Internet URL %2."},
// InvalidStreamError : { code: 2029, message: "This URLStream object does not have a stream opened."},
// SocketError : { code: 2031, message: "Socket Error."},
// StreamError : { code: 2032, message: "Stream Error."},
// KeyGenerationError : { code: 2033, message: "Key Generation Failed."},
// InvalidKeyError : { code: 2034, message: "An invalid digest was supplied."},
// URLNotFoundError : { code: 2035, message: "URL Not Found."},
// LoadNeverCompletedError : { code: 2036, message: "Load Never Completed."},
// InvalidCallError : { code: 2037, message: "Functions called in incorrect sequence, or earlier call was unsuccessful."},
// FileIOError : { code: 2038, message: "File I/O Error."},
// RemoteURLError : { code: 2039, message: "Invalid remote URL protocol. The remote URL protocol must be HTTP or HTTPS."},
// BrowseInProgressError : { code: 2041, message: "Only one file browsing session may be performed at a time."},
// DigestNotSupportedError : { code: 2042, message: "The digest property is not supported by this load operation."},
UnhandledError: { code: 2044, message: 'Unhandled %1:.' },
// FileVerificationError : { code: 2046, message: "The loaded file did not have a valid signature."},
// DisplayListSecurityError : { code: 2047, message: "Security sandbox violation: %1: %2 cannot access %3."},
// DownloadSecurityError : { code: 2048, message: "Security sandbox violation: %1 cannot load data from %2."},
// UploadSecurityError : { code: 2049, message: "Security sandbox violation: %1 cannot upload data to %2."},
// OutboundScriptingSecurityError : { code: 2051, message: "Security sandbox violation: %1 cannot evaluate scripting URLs within %2 (allowScriptAccess is %3). Attempted URL was %4."},
AllowDomainArgumentError: { code: 2052, message: 'Only String arguments are permitted for allowDomain and allowInsecureDomain.' },
// IntervalSecurityError : { code: 2053, message: "Security sandbox violation: %1 cannot clear an interval timer set by %2."},
// ExactSettingsError : { code: 2054, message: "The value of Security.exactSettings cannot be changed after it has been used."},
// PrintJobStartError : { code: 2055, message: "The print job could not be started."},
// PrintJobSendError : { code: 2056, message: "The print job could not be sent to the printer."},
// PrintJobAddPageError : { code: 2057, message: "The page could not be added to the print job."},
// ExternalCallbackSecurityError : { code: 2059, message: "Security sandbox violation: %1 cannot overwrite an ExternalInterface callback added by %2."},
// ExternalInterfaceSecurityError : { code: 2060, message: "Security sandbox violation: ExternalInterface caller %1 cannot access %2."},
// ExternalInterfaceNoCallbackError : { code: 2061, message: "No ExternalInterface callback %1 registered."},
// NoCloneMethodError : { code: 2062, message: "Children of Event must override clone() {return new MyEventClass (...);}."},
// IMEError : { code: 2063, message: "Error attempting to execute IME command."},
// FocusNotSetError : { code: 2065, message: "The focus cannot be set for this target."},
DelayRangeError: { code: 2066, message: 'The Timer delay specified is out of range.' },
ExternalInterfaceNotAvailableError: { code: 2067, message: 'The ExternalInterface is not available in this container. ExternalInterface requires Internet Explorer ActiveX, Firefox, Mozilla 1.7.5 and greater, or other browsers that support NPRuntime.' },
// InvalidSoundError : { code: 2068, message: "Invalid sound."},
InvalidLoaderMethodError: { code: 2069, message: 'The Loader class does not implement this method.' },
// StageOwnerSecurityError : { code: 2070, message: "Security sandbox violation: caller %1 cannot access Stage owned by %2."},
InvalidStageMethodError: { code: 2071, message: 'The Stage class does not implement this property or method.' },
// ProductManagerDiskError : { code: 2073, message: "There was a problem saving the application to disk."},
// ProductManagerStageError : { code: 2074, message: "The stage is too small to fit the download ui."},
// ProductManagerVerifyError : { code: 2075, message: "The downloaded file is invalid."},
// FilterFailedError : { code: 2077, message: "This filter operation cannot be performed with the specified input parameters."},
TimelineObjectNameSealedError: { code: 2078, message: 'The name property of a Timeline-placed object cannot be modified.' },
// BitmapNotAssociatedWithBitsCharError : { code: 2079, message: "Classes derived from Bitmap can only be associated with defineBits characters (bitmaps)."},
AlreadyConnectedError: { code: 2082, message: 'Connect failed because the object is already connected.' },
CloseNotConnectedError: { code: 2083, message: 'Close failed because the object is not connected.' },
ArgumentSizeError: { code: 2084, message: 'The AMF encoding of the arguments cannot exceed 40K.' },
// FileReferenceProhibitedError : { code: 2086, message: "A setting in the mms.cfg file prohibits this FileReference request."},
// DownloadFileNameProhibitedError : { code: 2087, message: "The FileReference.download() file name contains prohibited characters."},
// EventDispatchRecursionError : { code: 2094, message: "Event dispatch recursion overflow."},
AsyncError: { code: 2095, message: '%1 was unable to invoke callback %2.' },
// DisallowedHTTPHeaderError : { code: 2096, message: "The HTTP request header %1 cannot be set via ActionScript."},
// FileFilterError : { code: 2097, message: "The FileFilter Array is not in the correct format."},
LoadingObjectNotSWFError: { code: 2098, message: 'The loading object is not a .swf file, you cannot request SWF properties from it.' },
LoadingObjectNotInitializedError: { code: 2099, message: 'The loading object is not sufficiently loaded to provide this information.' },
// EmptyByteArrayError : { code: 2100, message: "The ByteArray parameter in Loader.loadBytes() must have length greater than 0."},
DecodeParamError: { code: 2101, message: 'The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs.' },
// NotAnXMLChildError : { code: 2102, message: "The before XMLNode parameter must be a child of the caller."},
// XMLRecursionError : { code: 2103, message: "XML recursion failure: new child would create infinite loop."},
SceneNotFoundError: { code: 2108, message: 'Scene %1 was not found.' },
FrameLabelNotFoundError: { code: 2109, message: 'Frame label %1 not found in scene %2.' },
// DisableAVM1LoadingError : { code: 2110, message: "The value of Security.disableAVM1Loading cannot be set unless the caller can access the stage and is in an ActionScript 3.0 SWF file."},
// AVM1LoadingError : { code: 2111, message: "Security.disableAVM1Loading is true so the current load of the ActionScript 1.0/2.0 SWF file has been blocked."},
// ApplicationDomainSecurityError : { code: 2112, message: "Provided parameter LoaderContext.ApplicationDomain is from a disallowed domain."},
// SecurityDomainSecurityError : { code: 2113, message: "Provided parameter LoaderContext.SecurityDomain is from a disallowed domain."},
// NonNullPointerError : { code: 2114, message: "Parameter %1 must be null."},
// TrueParamError : { code: 2115, message: "Parameter %1 must be false."},
// FalseParamError : { code: 2116, message: "Parameter %1 must be true."},
InvalidLoaderInfoMethodError: { code: 2118, message: 'The LoaderInfo class does not implement this method.' },
// LoaderInfoAppDomainSecurityError : { code: 2119, message: "Security sandbox violation: caller %1 cannot access LoaderInfo.applicationDomain owned by %2."},
SecuritySwfNotAllowedError: { code: 2121, message: 'Security sandbox violation: %1: %2 cannot access %3. This may be worked around by calling Security.allowDomain.' },
// SecurityNonSwfIncompletePolicyFilesError : { code: 2122, message: "Security sandbox violation: %1: %2 cannot access %3. A policy file is required, but the checkPolicyFile flag was not set when this media was loaded."},
// SecurityNonSwfNotAllowedError : { code: 2123, message: "Security sandbox violation: %1: %2 cannot access %3. No policy files granted access."},
UnknownFileTypeError: { code: 2124, message: 'Loaded file is an unknown type.' },
// SecurityCrossVMNotAllowedError : { code: 2125, message: "Security sandbox violation: %1 cannot use Runtime Shared Library %2 because crossing the boundary between ActionScript 3.0 and ActionScript 1.0/2.0 objects is not allowed."},
// NotConnectedError : { code: 2126, message: "NetConnection object must be connected."},
// FileRefBadPostDataTypeError : { code: 2127, message: "FileReference POST data cannot be type ByteArray."},
// NetConnectionConnectError : { code: 2129, message: "Connection to %1 failed."},
// SharedObjectFlushFailedError : { code: 2130, message: "Unable to flush SharedObject."},
DefinitionNotFoundError: { code: 2131, message: 'Definition %1 cannot be found.' },
// NetConnectionInvalidConnectFromNetStatusEventError : { code: 2132, message: "NetConnection.connect cannot be called from a netStatus event handler."},
// CallbackNotRegisteredError : { code: 2133, message: "Callback %1 is not registered."},
// SharedObjectCreateError : { code: 2134, message: "Cannot create SharedObject."},
// InvalidSWFError : { code: 2136, message: "The SWF file %1 contains invalid data."},
// NavigationSecurityError : { code: 2137, message: "Security sandbox violation: %1 cannot navigate window %2 within %3 (allowScriptAccess is %4). Attempted URL was %5."},
// NonParsableRichTextXMLError : { code: 2138, message: "Rich text XML could not be parsed."},
// SharedObjectConnectError : { code: 2139, message: "SharedObject could not connect."},
// LocalSecurityLoadingError : { code: 2140, message: "Security sandbox violation: %1 cannot load %2. Local-with-filesystem and local-with-networking SWF files cannot load each other."},
// MultiplePrintJobsError : { code: 2141, message: "Only one PrintJob may be in use at a time."},
// LocalImportSecurityError : { code: 2142, message: "Security sandbox violation: local SWF files cannot use the LoaderContext.sec property. %1 was attempting to load %2."},
// AccOverrideRole : { code: 2143, message: "AccessibilityImplementation.get_accRole() must be overridden from its default."},
// AccOverrideState : { code: 2144, message: "AccessibilityImplementation.get_accState() must be overridden from its default."},
// URLRequestHeaderInvalidLengthError : { code: 2145, message: "Cumulative length of requestHeaders must be less than 8192 characters."},
// AllowNetworkingSecurityError : { code: 2146, message: "Security sandbox violation: %1 cannot call %2 because the HTML/container parameter allowNetworking has the value %3."},
// ForbiddenProtocolError : { code: 2147, message: "Forbidden protocol in URL %1."},
// RemoteToLocalSecurityError : { code: 2148, message: "SWF file %1 cannot access local resource %2. Only local-with-filesystem and trusted local SWF files may access local resources."},
// FsCommandSecurityError : { code: 2149, message: "Security sandbox violation: %1 cannot make fscommand calls to %2 (allowScriptAccess is %3)."},
CantAddParentError: { code: 2150, message: 'An object cannot be added as a child to one of it\'s children (or children\'s children, etc.).' },
// FullScreenSecurityError : { code: 2151, message: "You cannot enter full screen mode when the settings dialog is visible."},
// FullScreenNotAllowedError : { code: 2152, message: "Full screen mode is not allowed."},
// URLRequestInvalidHeader : { code: 2153, message: "The URLRequest.requestHeaders array must contain only non-NULL URLRequestHeader objects."},
// InvalidNetStreamObject : { code: 2154, message: "The NetStream Object is invalid. This may be due to a failed NetConnection."},
// InvalidFunctionName : { code: 2155, message: "The ExternalInterface.call functionName parameter is invalid. Only alphanumeric characters are supported."},
// ForbiddenPortForProtocolError : { code: 2156, message: "Port %1 may not be accessed using protocol %2. Calling SWF was %3."},
// NoAsfunctionErrror : { code: 2157, message: "Rejecting URL %1 because the 'asfunction:' protocol may only be used for link targets, not for networking APIs."},
// InvalidNetConnectionObject : { code: 2158, message: "The NetConnection Object is invalid. This may be due to a dropped NetConnection."},
// InvalidSharedObject : { code: 2159, message: "The SharedObject Object is invalid."},
// InvalidTextLineError : { code: 2160, message: "The TextLine is INVALID and cannot be used to access the current state of the TextBlock."},
// TextLayoutError : { code: 2161, message: "An internal error occured while laying out the text."},
// FragmentOutputType : { code: 2162, message: "The Shader output type is not compatible for this operation."},
// FragmentInputType : { code: 2163, message: "The Shader input type %1 is not compatible for this operation."},
// FragmentInputMissing : { code: 2164, message: "The Shader input %1 is missing or an unsupported type."},
// FragmentInputTooSmall : { code: 2165, message: "The Shader input %1 does not have enough data."},
// FragmentInputNoDimension : { code: 2166, message: "The Shader input %1 lacks valid dimensions."},
// FragmentNotEnoughInput : { code: 2167, message: "The Shader does not have the required number of inputs for this operation."},
// StaticTextLineError : { code: 2168, message: "Static text lines have no atoms and no reference to a text block."},
// SecurityQuestionableBrowserScriptingError : { code: 2169, message: "The method %1 may not be used for browser scripting. The URL %2 requested by %3 is being ignored. If you intend to call browser script, use navigateToURL instead."},
// HeaderSecurityError : { code: 2170, message: "Security sandbox violation: %1 cannot send HTTP headers to %2."},
// FragmentMissing : { code: 2171, message: "The Shader object contains no byte code to execute."},
// FragmentAlreadyRunning : { code: 2172, message: "The ShaderJob is already running or finished."},
// FileReferenceBusyError : { code: 2174, message: "Only one download, upload, load or save operation can be active at a time on each FileReference."},
// UnformattedElementError : { code: 2175, message: "One or more elements of the content of the TextBlock has a null ElementFormat."},
// UserActionRequiredError : { code: 2176, message: "Certain actions, such as those that display a pop-up window, may only be invoked upon user interaction, for example by a mouse click or button press."},
// FragmentInputTooLarge : { code: 2177, message: "The Shader input %1 is too large."},
// ClipboardConstNotAllowed : { code: 2178, message: "The Clipboard.generalClipboard object must be used instead of creating a new Clipboard."},
// ClipboardDisallowedRead : { code: 2179, message: "The Clipboard.generalClipboard object may only be read while processing a flash.events.Event.PASTE event."},
// CantMoveAVM1ContentLoadedIntoAVM2 : { code: 2180, message: "It is illegal to move AVM1 content (AS1 or AS2) to a different part of the displayList when it has been loaded into AVM2 (AS3) content."},
// InvalidTextLineMethodError : { code: 2181, message: "The TextLine class does not implement this property or method."},
// PerspectiveFieldOfViewValueInvalid : { code: 2182, message: "Invalid fieldOfView value. The value must be greater than 0 and less than 180."},
// Invalid3DScale : { code: 2183, message: "Scale values must not be zero."},
// LockedElementFormatError : { code: 2184, message: "The ElementFormat object is locked and cannot be modified."},
// LockedFontDescriptionError : { code: 2185, message: "The FontDescription object is locked and cannot be modified."},
// PerspectiveFocalLengthInvalid : { code: 2186, message: "Invalid focalLength %1."},
// Matrix3DDecomposeTypeInvalid : { code: 2187, message: "Invalid orientation style %1. Value must be one of 'Orientation3D.EULER_ANGLES', 'Orientation3D.AXIS_ANGLE', or 'Orientation3D.QUATERNION'."},
// MatrixNonInvertibleError : { code: 2188, message: "Invalid raw matrix. Matrix must be invertible."},
Matrix3DRefCannontBeShared: { code: 2189, message: 'A Matrix3D can not be assigned to more than one DisplayObject.' },
// ForceDownloadSecurityError : { code: 2190, message: "The attempted load of %1 failed as it had a Content-Disposition of attachment set."},
// ClipboardDisallowedWrite : { code: 2191, message: "The Clipboard.generalClipboard object may only be written to as the result of user interaction, for example by a mouse click or button press."},
// MalformedUnicodeError : { code: 2192, message: "An unpaired Unicode surrogate was encountered in the input."},
// SecurityContentAccessDeniedError : { code: 2193, message: "Security sandbox violation: %1: %2 cannot access %3."},
// LoaderParamError : { code: 2194, message: "Parameter %1 cannot be a Loader."},
// LoaderAsyncError : { code: 2195, message: "Error thrown as Loader called %1."},
ObjectWithStringsParamError: { code: 2196, message: 'Parameter %1 must be an Object with only String values.' },
// SystemUpdaterPlayerNotSupportedError : { code: 2200, message: "The SystemUpdater class is not supported by this player."},
// SystemUpdaterOSNotSupportedError : { code: 2201, message: "The requested update type is not supported on this operating system."},
// SystemUpdaterBusy : { code: 2202, message: "Only one SystemUpdater action is allowed at a time."},
// SystemUpdaterFailed : { code: 2203, message: "The requested SystemUpdater action cannot be completed."},
// SystemUpdaterCannotCancel : { code: 2204, message: "This operation cannot be canceled because it is waiting for user interaction."},
// SystemUpdaterUnknownTarget : { code: 2205, message: "Invalid update type %1."},
// SignedSWfLoadingError : { code: 2500, message: "An error occurred decrypting the signed swf file. The swf will not be loaded."},
// NotScreenSharingError : { code: 2501, message: "This property can only be accessed during screen sharing."},
// NotSharingMonitorError : { code: 2502, message: "This property can only be accessed if sharing the entire screen."},
// FileBadPathName : { code: 3000, message: "Illegal path name."},
// FileAccessDenied : { code: 3001, message: "File or directory access denied."},
// FileExists : { code: 3002, message: "File or directory exists."},
// FileDoesNotExist : { code: 3003, message: "File or directory does not exist."},
// FileInsufficientSpace : { code: 3004, message: "Insufficient file space."},
// FileSystemResources : { code: 3005, message: "Insufficient system resources."},
// FileNotAFile : { code: 3006, message: "Not a file."},
// FileNotADir : { code: 3007, message: "Not a directory."},
// FileReadOnlyFileSys : { code: 3008, message: "Read-only or write-protected media."},
// FileNotSameDevice : { code: 3009, message: "Cannot move file or directory to a different device."},
// DirNotEmpty : { code: 3010, message: "Directory is not empty."},
// FileDestinationExists : { code: 3011, message: "Move or copy destination already exists."},
// FileCantDelete : { code: 3012, message: "Cannot delete file or directory."},
// FileInUse : { code: 3013, message: "File or directory is in use."},
// FileCopyMoveAncestor : { code: 3014, message: "Cannot copy or move a file or directory to overwrite a containing directory."},
// LoadBytesCodeExecutionSecurityError : { code: 3015, message: "Loader.loadBytes() is not permitted to load content with executable code."},
// FileApplicationNotFound : { code: 3016, message: "No application was found that can open this file."},
// SQLConnectionCannotClose : { code: 3100, message: "A SQLConnection cannot be closed while statements are still executing."},
// SQLConnectionAlreadyOpen : { code: 3101, message: "Database connection is already open."},
// SQLConnectionInvalidName : { code: 3102, message: "Name argument specified was invalid. It must not be null or empty."},
// SQLConnectionInTransaction : { code: 3103, message: "Operation cannot be performed while there is an open transaction on this connection."},
// SQLConnectionNotOpen : { code: 3104, message: "A SQLConnection must be open to perform this operation."},
// SQLConnectionNoOpenTransaction : { code: 3105, message: "Operation is only allowed if a connection has an open transaction."},
// SQLStatementIsExecutingProperty : { code: 3106, message: "Property cannot be changed while SQLStatement.executing is true."},
// SQLStatementIvalidCall : { code: 3107, message: "%1 may not be called unless SQLResult.complete is false."},
// SQLStatementInvalidText : { code: 3108, message: "Operation is not permitted when the SQLStatement.text property is not set."},
// SQLStatementInvalidConnection : { code: 3109, message: "Operation is not permitted when the SQLStatement.sqlConnection property is not set."},
// SQLStatementIsExecutingCall : { code: 3110, message: "Operation cannot be performed while SQLStatement.executing is true."},
// SQLStatementInvalidSchemaType : { code: 3111, message: "An invalid schema type was specified."},
// SQLConnectionInvalidLockType : { code: 3112, message: "An invalid transaction lock type was specified."},
// SQLConnectionNotFileReference : { code: 3113, message: "Reference specified is not of type File."},
// SQLConnectionInvalidModeSpecified : { code: 3114, message: "An invalid open mode was specified."},
// SQLGeneralEngineError : { code: 3115, message: "SQL Error."},
// SQLInternalEngineError : { code: 3116, message: "An internal logic error occurred."},
// SQLPermissionError : { code: 3117, message: "Access permission denied."},
// SQLOperationAbortedError : { code: 3118, message: "Operation aborted."},
// SQLDatabaseLockedError : { code: 3119, message: "Database file is currently locked."},
// SQLTableLockedError : { code: 3120, message: "Table is locked."},
// SQLOutOfMemoryError : { code: 3121, message: "Out of memory."},
// SQLDatabaseIsReadonlyError : { code: 3122, message: "Attempt to write a readonly database."},
// SQLDatabaseCorruptError : { code: 3123, message: "Database disk image is malformed."},
// SQLDatabaseFullError : { code: 3124, message: "Insertion failed because database is full."},
// SQLCannotOpenDatabaseError : { code: 3125, message: "Unable to open the database file."},
// SQLLockingProtocolError : { code: 3126, message: "Database lock protocol error."},
// SQLDatabaseEmptyError : { code: 3127, message: "Database is empty."},
// SQL