実行時に発生する可能性のあるエラーを次に示します。ActionScript 3.0 では、実行時の型チェックは、strict モードと warning モードのどちらでコンパイルするかに関係なく行われます。
関連項目
| コード | メッセージ | 説明 | |
|---|---|---|---|
| 1000 | The system is out of memory. | Flash Player needs more memory to compile your code than your system has available. Close some of the applications or processes running on your system. | |
| 1001 | The method _ is not implemented. | ||
| 1002 | 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. |
You specified a value that is not within the expected range of the precision argument. Number.toPrecision has a range of 1 to 21. Number.toFixed and Number.toExponential have a range of 0 to 20.
|
|
| 1003 | The radix argument must be between 2 and 36; got _. |
You passed a value less than 2 or greater than 36 for the radix argument of a method or property.
Pass a value between 2 and 36 as a radix argument.
|
|
| 1004 | Method _ was invoked on an incompatible object. | You tried to call a method that is not available to the specified object. This error occurs when you have copied a prototype function from one object to another, and then invoked it, but the target object is not the same type as the original object. Ensure that the target object and original object are the same type. See the ECMAScript Language Specification, 3rd Edition, Chapter 15 for more details. | |
| 1005 | Array index is not a positive integer (_). | You tried to access a member of an array using an index value that is not a positive integer. Pass only positive integers as index values for arrays. | |
| 1006 | _ is not a function. |
This error occurs when you attempt to call a function that does not exist.
Make sure you are calling the correct function, and that the API has
not changed from ActionScript 2.0. Also, make sure you are using the correct
object. For example, you will see this error when you use the following code
(because the last line mistakenly calls the variable big instead
of blg):
|
|
| 1007 | Instantiation attempted on a non-constructor. | ||
| 1008 | _ is ambiguous; Found more than one matching binding. | ||
| 1009 | Cannot access a property or method of a null object reference. |
An object that evaluates to null can have no properties. This error can occur in some unexpected
(though valid) situations. For example, consider the following code, which creates a Sprite
object. Because this Sprite object is never added to the display list (through the
addChild() method of a DisplayObjectContainer object), its stage
property is set to null. Thus, the example generates this error because Sprite object's stage property
cannot have any properties:
|
|
| 1010 | A term is undefined and has no properties. |
This error can occur if you try to access a property of an object that does not exist. For example:
You can also see this error because of a misspelling, for example in the following, where
|
|
| 1011 | Method _ contained illegal opcode _ at offset _. | See the note at the bottom of this table.* | |
| 1012 | The last instruction exceeded code size. | See the note at the bottom of this table.* | |
| 1013 | Cannot call OP_findproperty when scopeDepth is 0. | See the note at the bottom of this table.* | |
| 1014 | Class _ could not be found. | ||
| 1015 | Method _ cannot set default xml namespace | See the note at the bottom of this table.* | |
| 1016 | Descendants operator (..) not supported on type _. | ||
| 1017 | Scope stack overflow occurred. | See the note at the bottom of this table.* | |
| 1018 | Scope stack underflow occurred. | See the note at the bottom of this table.* | |
| 1019 | Getscopeobject _ is out of bounds. | See the note at the bottom of this table.* | |
| 1020 | Code cannot fall off the end of a method. | See the note at the bottom of this table.* | |
| 1021 | At least one branch target was not on a valid instruction in the method. | See the note at the bottom of this table.* | |
| 1022 | Type void may only be used as a function return type. | See the note at the bottom of this table.* | |
| 1023 | Stack overflow occurred. | See the note at the bottom of this table.* | |
| 1024 | Stack underflow occurred. | See the note at the bottom of this table.* | |
| 1025 | An invalid register _ was accessed. | See the note at the bottom of this table.* | |
| 1026 | Slot _ exceeds slotCount=_ of _. | See the note at the bottom of this table.* | |
| 1027 | Method_info _ exceeds method_count=_. | See the note at the bottom of this table.* | |
| 1028 | Disp_id _ exceeds max_disp_id=_ of _. | See the note at the bottom of this table.* | |
| 1029 | Disp_id _ is undefined on _. | See the note at the bottom of this table.* | |
| 1030 | Stack depth is unbalanced. _ != _. | See the note at the bottom of this table.* | |
| 1031 | Scope depth is unbalanced. _ != _. | See the note at the bottom of this table.* | |
| 1032 | Cpool index _ is out of range _. | See the note at the bottom of this table.* | |
| 1033 | Cpool entry _ is wrong type. | See the note at the bottom of this table.* | |
| 1034 | Type Coercion failed: cannot convert _ to _. | ||
| 1035 | Illegal super expression found in method _. | See the note at the bottom of this table.* | |
| 1037 | Cannot assign to a method _ on _. | See the note at the bottom of this table.* | |
| 1038 | _ is already defined. |
You cannot declare a variable or function with the same identifier name more than once
within the same scope.
In ActionScript 3.0, different code blocks (such as those used in two for loops
in the same function definition) are considered to be in the same scope.
See the note at the bottom of this table.*
|
|
| 1039 | Cannot verify method until it is referenced. | See the note at the bottom of this table.* | |
| 1040 | The right-hand side of instanceof must be a class or function. |
The expression on the right side of the instanceof operator must be a class or function.
|
|
| 1041 | The right-hand side of operator must be a class. |
The expression on the right side of the is operator must be a class.
|
|
| 1042 | Not an ABC file. major_version=_ minor_version=_. | You are attempting to use an invalid file with the player: the tool that generates the SWF may be out of date or the SWF itself may be corrupt. | |
| 1043 | Invalid code_length=_. | See the note at the bottom of this table.* | |
| 1044 | MethodInfo-_ unsupported flags=_. | See the note at the bottom of this table.* | |
| 1045 | Unsupported traits kind=_. | See the note at the bottom of this table.* | |
| 1046 | MethodInfo-_ referenced before definition. | See the note at the bottom of this table.* | |
| 1047 | No entry point was found. | See the note at the bottom of this table.* | |
| 1049 | Prototype objects must be vanilla Objects. | See the note at the bottom of this table.* | |
| 1050 | Cannot convert _ to primitive. | See the note at the bottom of this table.* | |
| 1051 | Illegal early binding access to _. | See the note at the bottom of this table.* | |
| 1052 | Invalid URI passed to _ function. | See the note at the bottom of this table.* | |
| 1053 | Illegal override of _ in _. | See the note at the bottom of this table.* | |
| 1054 | Illegal range or target offsets in exception handler. | See the note at the bottom of this table.* | |
| 1056 | Cannot create property _ on _. | You are trying to assign a value to a nonexistent property on an instance of a non-dynamic class. This is only possible for instances of dynamic classes | |
| 1057 | _ can only contain methods. | See the note at the bottom of this table.* | |
| 1058 | Illegal operand type: _ must be _. | See the note at the bottom of this table.* | |
| 1059 | ClassInfo-_ is referenced before definition. | See the note at the bottom of this table.* | |
| 1060 | ClassInfo _ exceeds class_count=_. | See the note at the bottom of this table.* | |
| 1061 | The value _ cannot be converted to _ without losing precision. |
This error appears if you attempt to assign a decimal number to a property that has data type
int.
This error also appears for out-of-range assignments, such as the following:
You can also see this error when using the bitwise left shift operator (<<). For example, consider the following code:
The result of left shift operator (<<) is interpreted as a 32-bit two's complement number with sign. In the example, the result is a negative value, which causes the error when assigned to the uint typed property. A workaround is the following:
|
|
| 1063 | Argument count mismatch on _. Expected _, got _. | ||
| 1064 | Cannot call method _ as constructor. |
Extracted methods are permanently bound to the object they are extracted from.
Therefore, they can not later be called as a constructor. For example, the following
creates function f() in Class A:
In the following code, extracting the function causes no error. However, creating
a new instance of the function causes an error.
|
|
| 1065 | Variable _ is not defined. |
You are using an undefined lexical reference. For example, in the following statements, the
statement trace(x) generates an error because x is undefined. However, the
statement trace(y) doesn't generate an error because y is defined:
|
|
| 1066 | The form function('function body') is not supported. |
Unlike JavaScript, Flash does not compile code on-the-fly using eval() and
function(). Thus, calling these as a constructor in ActionScript 3.0 generates this error.
|
|
| 1067 | Native method _ has illegal method body. | See the note at the bottom of this table.* | |
| 1068 | _ and _ cannot be reconciled. | See the note at the bottom of this table.* | |
| 1069 | Property _ not found on _ and there is no default value. |
You are referencing an undefined property on a non-dynamic class instance. For example, the following generates this error when it references property
x, which is not defined and cannot be created dynamically:
|
|
| 1070 | Method _ not found on _ |
You are using a super statement to call a function, but the function doesn't exist in the super class.
For example, the following code generates the error:
|
|
| 1071 | Function _ has already been bound to _. | ||
| 1072 | Disp_id 0 is illegal. | See the note at the bottom of this table.* | |
| 1073 | Non-override method _ replaced because of duplicate disp_id _. | See the note at the bottom of this table.* | |
| 1074 | Illegal write to read-only property _ on _. | ||
| 1075 | Math is not a function. |
You are trying to call math() as a function, but the Math class is a class with static methods.
|
|
| 1076 | Math is not a constructor. | You can not instantiate the Math class. | |
| 1077 | Illegal read of write-only property _ on _. | ||
| 1078 | Illegal opcode/multiname combination: _<_>. | See the note at the bottom of this table.* | |
| 1079 | Native methods are not allowed in loaded code. | See the note at the bottom of this table.* | |
| 1080 | Illegal value for namespace. | See the note at the bottom of this table.* | |
| 1081 | Property _ not found on _ and there is no default value. | ||
| 1082 | No default namespace has been set. | See the note at the bottom of this table.* | |
| 1083 | The prefix "_" for element "_" is not bound. |
An attribute name or element name has a prefix but no matching namespace was
found. This statement generates an error because there is no foo
namespace to match foo:x:<foo:x xmlns:clowns='http://circuscenter.org'>
|
|
| 1084 | Element or attribute ("_") does not match QName production: QName::=(NCName':')?NCName. |
You have foo: or :foo as an element or attribute name, but there is nothing
on the other side of the colon.
|
|
| 1085 | The element type "_" must be terminated by the matching end-tag "</_>". | ||
| 1086 | The _ method only works on lists containing one item. |
The XMLList class propagates the XML-specific functions to one child if it has only one
item in its list. If more than one item is in the list, the routines fail with this
error. This happens for the following XMLList functions that mimic XML functions:
|
|
| 1087 | Assignment to indexed XML is not allowed. | ||
| 1088 | The markup in the document following the root element must be well-formed. |
These are possible causes of this error:
|
|
| 1089 | Assignment to lists with more than one item is not supported. | ||
| 1090 | XML parser failure: element is malformed. |
An element name is malformed. This example of an element name is malformed because a
trailing right angle bracket > is missing:
<a/><b></b |
|
| 1091 | XML parser failure: Unterminated CDATA section. | ||
| 1092 | XML parser failure: Unterminated XML declaration. | ||
| 1093 | XML parser failure: Unterminated DOCTYPE declaration. | ||
| 1094 | XML parser failure: Unterminated comment. | ||
| 1095 | XML parser failure: Unterminated attribute. | ||
| 1096 | XML parser failure: Unterminated element. | ||
| 1097 | XML parser failure: Unterminated processing instruction. | ||
| 1098 | Illegal prefix _ for no namespace. |
The namespace constructor throws this error if you try to pass in an empty URI with a
non-empty prefix as in this example:
ns = new Namespace ("prefix", "");
|
|
| 1100 | Cannot supply flags when constructing one RegExp from another. |
Creating a new regular expression from an existing one also copies its flags. To create a regular expression with
different flags, use the new operator and set the flags as desired. For example, this statement
creates a regular expression and specifies flag settings:
Alternatively, this statement creates a regular expression that has the same flags as re:
|
|
| 1101 | Cannot verify method _ with unknown scope. | See the note at the bottom of this table.* | |
| 1102 | Illegal default value for type _. | See the note at the bottom of this table.* | |
| 1103 | Class _ cannot extend final base class. | See the note at the bottom of this table.* | |
| 1104 | Attribute "_" was already specified for element "_". | ||
| 1107 | The ABC data is corrupt, attempt to read out of bounds. | See the note at the bottom of this table.* | |
| 1108 | The OP_newclass opcode was used with the incorrect base class. | See the note at the bottom of this table.* | |
| 1109 | Attempt to directly call unbound function _ from method _. | See the note at the bottom of this table.* | |
| 1110 | _ cannot extend _. | See the note at the bottom of this table.* | |
| 1111 | _ cannot implement _. | See the note at the bottom of this table.* | |
| 1112 | Argument count mismatch on class coercion. Expected 1, got _. | ||
| 1113 | OP_newactivation used in method without NEED_ACTIVATION flag. | See the note at the bottom of this table.* | |
| 1114 | OP_getglobalslot or OP_setglobalslot used with no global scope. | See the note at the bottom of this table.* | |
| 1115 | _ is not a constructor. | ||
| 1116 | second argument to Function.prototype.apply must be an array. | ||
| 1117 | Invalid XML name: _. | ||
| 1118 | Illegal cyclical loop between nodes. | ||
| 1119 | Delete operator is not supported with operand of type _. | ||
| 1120 | Cannot delete property _ on _. | ||
| 1121 | Method _ has a duplicate method body. | ||
| 1122 | Interface method _ has illegal method body. | ||
| 1123 | Filter operator not supported on type _. | ||
| 1124 | OP_hasnext2 requires object and index to be distinct registers. | ||
| 1502 | A script has executed for longer than the default timeout period of 15 seconds. | A script executed after the timeout period. (The default timeout period is 15 seconds.) After this error occurs, the script can continue to execute for 15 seconds more, after which the script terminates and throws run-time error number 1503 (A script failed to exit after 30 seconds and was terminated.) | |
| 1503 | A script failed to exit after 30 seconds and was terminated. | The script was still executing after 30 seconds. Flash Player first throws run-time error number 1502 (A script has executed for longer than the default timeout period of 15 seconds.) if the script executed more than 15 seconds, which is the default timeout period. This error occurs 15 seconds after Error 1502 occurs. | |
| 1507 | Argument _ cannot be null. | ||
| 1508 | The value specified for argument _ is invalid. |
You are possibly trying to pass the wrong data type. For example, the code
generates an error at runtime because doSomething is cast as an int data type. |
|
| 1510 | When the callback argument is a method of a class, the optional this argument must be null. |
* メモ : このエラーは、SWF 内の ActionScript が無効であることを示しています。ファイルが破損していないと思われる場合は、問題をアドビ システムズ社までご報告ください。
このページに新しいコメントが追加された場合に、電子メールでの通知を希望する。 | コメントレポート
現在のページ: http://livedocs.adobe.com/flex/201_jp/langref/runtimeErrors.html