Compilation errors of the ActionScript 3.0 Compiler

Source: Internet
Author: User

The compiler is invalid.CodeThe compilation Error List generated during the upload. The subset of these errors can be detected only when the code is compiled in rigorous mode. Strict mode adds three constraints not in the standard language: The expression has a static type, and the type error is a verification error. Add verification rules to capture common programming errors. Report verification errors in advance.

The following verification errors only occur in rigorous mode: function call Signature Matching checks the number and type of parameters provided. Duplicate definition conflict. Unbound reference occurs when undefined methods or attributes are accessed during compilation. Dynamically add attributes to the sealed object. Write constant variables. Delete a fixed attribute. Use an incompatible expression for comparison. No package found.

Code Message description

1000 _ references are not clear. The reference may point to multiple numbers. For example, the following uses the RSS and XML Namespaces. Each namespace defines different values for the hello () function. The trace (Hello () Statement returns this error because it cannot determine which namespace to use. Private namespace RSS; private namespace XML; Public Function errorexamples () {use namespace RSS; Use namespace XML; trace (Hello ();} RSS function Hello (): string {return "Hola";} XML function Hello (): String {return "foo";} uses a specific reference to correct ambiguous references.

The following example uses the namespace: Function Format to specify the namespace to be used: Public Function errorexamples () {trace (RSS: Hello (); trace (XML :: hello ());}

1003 the access specifiers and namespace attributes cannot be used in combination. Access specifiers (such as private or public) and namespace attributes cannot be used in definitions at the same time.

1004 The namespace cannot be found, or the namespace is not a compilation constant. The namespace is unknown, or the runtime may have expressions with different values. Check whether the namespace spelling and definition import are correct.

1006 super expressions can only be used inside the class instance method.

The 1007 super statement can only be used within the class instance constructor. The super statement cannot be used within a static member. The super statement can only be used within a class instance.

1008 the property is invalid.

1010 the override attribute can only be used in the class attribute definition. You cannot use the override keyword within the function block.

1011 virtual attributes can only be used in class attribute definitions. When declared attributes do not belong to a class (for example, when a variable is declared inside the function block), virtual attributes cannot be used.

1012 the static attribute can only be used in the internal definition of the class.

1013 private attributes can only be used in the attribute definition of a class.

1014 the intrinsic attribute is no longer supported. The intrinsic keyword is not supported in ActionScript 3.0.

1016 the base class is the final class. The superclass cannot be extended because they are marked as final.

1017 the definition of the base class _ cannot be found.

The definition _ Of The 1018 class is repeated.

1020 the method marked as override must overwrite other methods.

1021 the function definition is repeated. In the same range, multiple functions cannot be declared using the same identifier name.

1022 the final accessors cannot be overwritten.

1023 coverage is not compatible. The function marked as override must exactly match the parameter and return type declaration of the function to be overwritten. It must have the same number of parameters, and each parameter has the same type. It must also declare the same return type. If any parameter is optional, the function must also match the parameter. The two functions must also use the same access specifiers (such as public and private) or namespace attributes.

1024 override a function that is not marked as override. If a method in a class overrides a method in the base class, you must use the override attribute to explicitly declare the method, as shown in the following example: Public override function Foo (): void {};

1025 the final method cannot be redefined. This method cannot be extended because it is marked as final in the base class.

1026 the constructor must be an instance method.

1027 functions cannot be both static and override functions.

1028 functions cannot be both static and virtual functions.

1029 functions cannot be both final and virtual functions.

1030 the name of the Variable Parameter array must be specified. All values provided after... (rest) are collected to any array. You must specify the name of the array, as shown in the function Foo (x,... (rest) expression.

1033 virtual variables are not supported.

The 1034 variable cannot be native.

1035 the variables cannot be both final and virtual.

1037 packages cannot be nested.

1038 the target of the break statement cannot be found.

1039 the target of the continue statement cannot be found.

1040 the tag definition is repeated.

1041 the property cannot be called.

1042 this keyword cannot be used in the static method. It can only be used in instance methods, function closures, and global code. You cannot use the this keyword within a static member because this may have no context.

1043 The namespace is not defined.

1044 the interface method _ (namespace _) is not implemented by class.

1045 unable to find the interface _.

1046 the type cannot be found, or the type is not the compile-time constant _. The class used as the type declaration is unknown, or the runtime may have expressions with different values. Check whether the imported class is correct and whether the package location of the class has not been changed. In addition, check whether the packages containing code (not imported classes) are correctly defined (for example, make sure that the correct ActionScript 3.0 package syntax is used instead of the ActionScript 2.0 package syntax ). If the class to be referenced is not defined in the namespace in use or is not defined as public, this error will also occur: public class Foo {} if you are using Flex? Builder? 2. The class exists in the library. Make sure to set the class path for the project.

1047 the initial value of the parameter is unknown, or it is not the compile time. The value used as the default value of this parameter is undefined or may have different values at runtime. Check whether the spelling of the initial value setting item is correct and whether the value of the initial value setting item is an expression that will generate different values at runtime.

1048 the method cannot be used as a constructor. You cannot create instances of class methods. Only global functions can be used in the new expression. Class D {function XX () {return 22 ;}} var D: D = new D (); var x = new D. XX (); // error. The method cannot be used as the constructor YY () {This. A = 22;} var z = new YY (); // no error. The global function can be used as a constructor.

1049 the assignment of a variable specified as a constant is invalid.

1050 cannot be assigned to a non-reference value.

1051 the returned value must be undefined. Attempting to use the return statement in the method that declares the void return type.

The initial value of a 1052 constant is unknown, or it is not a compilation constant. The value used to initialize the constant is undefined, or may have different values at runtime. Check whether the spelling of the initial value setting item is correct and whether the value of the initial value setting item is an expression that will generate different values at runtime.

1053 the accessor type must match.

1054 the return type defined by setter must be unspecified or void. The return value cannot be specified for the setter function. For example, the following statement is invalid: public function set gamma (G: Number): number; the following statement is valid: public function set gamma (G: Number): void;

1058 the attribute is only written.

1059 the attribute is read-only. This attribute is defined by the getter function. Therefore, you can retrieve the value of this attribute. However, the setter function defined for this attribute does not exist. Therefore, this attribute is read-only. In the following example, the 3rd row generates an error because the setter function defined for XX does not exist: Class D {function get XX () {return 22 ;}} var D: D = new D (); D. xx = 44; // error. The attribute is read-only.

1061 call a method that may be undefined _ (called by reference of the static type ). The method to be called is not defined.

1063 file _ cannot be opened _.

1064 the metadata is invalid. This metadata cannot be identified.

1065 the attributes of metadata cannot contain multiple elements.

1067 force the value of the _ type to be of the irrelevant _ type. Attempting to convert an object to a type that cannot be converted. This situation may occur if the class to be converted is not in the inheritance chain of the converted object. This error occurs only when the compiler runs in strict mode.

1068 unable to open the contained file _.

1069 syntax error: there should be definitions or instructions. Check the syntax in this row.

1071 syntax error: the defined keyword (such as function) should be after attribute _, rather than after. This error occurs if the author forgets to use the "Var" and "function" keywords in the Declaration. Public int Z; // This error is also returned when the compiler encounters an unexpected character "Public var Z: int. For example, the trace () function used below is invalid because parentheses are missing (the correct syntax is trace ("hello"): Import flash. utils. Trace; trace "hello"

1072 syntax error: The namespace should have XML before. The correct statement syntax is default XML namespace = NS. Or the keyword XML is missing (in lower case), or the incorrect keyword is used. For more information, see the default XML namespace command.

1073 syntax error: the catch or finally clause should exist.

1075 syntax error: if the "in" operator is not available, the "each" keyword is not allowed.

1076 syntax error: the identifier should have left brackets.

1077 should have caselabel. In the switch block, the compiler should execute the case statement. The following switch block contains the call to print before the first case statement by mistake: Switch (x) {trace (2); Case 0: trace (0); break}

1078 the tag must be a simple identifier.

The 1079 super expression must have an operand.

1080 there should be an increasing or decreasing operator.

1082 there should be an expression in the brackets.

1083 syntax error: Unexpected _. Some information is missing from the code line. In the following example, the last plus sign must be followed by an expression (such as another number): var sum: Int = 1 + 2 +;

1084 syntax error: Before ). This expression is not required here. If the error is"ProgramThere should be right brackets before the end, indicating that the code block lacks the right braces (}). If the error is "_ before there are left parentheses", it indicates that parentheses may be missing in the conditional expression, as shown in the following example (intentional error): var fact: Int = 1*2*3; if fact> 2 {var bigger: Boolean = true ;}

1086 syntax error: _ should have a semicolon before.

1087 syntax error: Additional characters are found after the program ends.

1093 syntax error.

1094 syntax error: the string text must be terminated before the linefeed.

1095 syntax error: the string text must be terminated before the linefeed.

1097 syntax error: the input has ended before the right quotation mark of the string text.

1099 syntax error.

1100 syntax error: XML does not have matching start and end tags.

 

Error #1000: The system memory is insufficient.
Error #1001: % 1 method is not implemented.
Error #1002: The precision parameter must be between % 2 and % 3; % 1 is invalid.
Error #1003: The base parameter must be between 2 and 36. The current value is % 1.
Error #1004: method % 1 is called for incompatible objects.
Error #1005: the array index is not a positive integer (% 1 ).
Error #1006: % 1 is not a function.
Error #1007: the function to be instantiated is not a constructor.
Error #1008: % 1 is ambiguous; Multiple matching bindings are found.
Error #1009: the attribute or method referenced by the null object cannot be accessed.
Error #1010: the term is not defined yet and there is no attribute.
Error #1011: method % 1 contains invalid opcode % 2 (offset: % 3 ).
Error #1012: The last command exceeds the code size.
Error #1013: When scopedepth is 0, op_findproperty cannot be called.
Error #1014: The Class % 1 cannot be found.
Error #1015: the default XML namespace cannot be set in method % 1
Error #1016: Type % 1 does not support descendant operators (..).
Error #1017: The range stack overflow occurs.
Error #1018: The range stack overflow occurs.
Error #1019: getscopeobject % 1 is out of the range.
Error #1020: The Code cannot exceed the end of the method.
Error #1021: at least one branch target is not a valid instruction in the method.
Error #1022: The Void type can only be used as the function return type.
Error #1023: Stack Overflow occurs.
Error #1024: Stack Overflow occurs.
Error #1025: Invalid registration % 1 is accessed.
Error #1026: slot % 1 exceeds the limit of slotcount = % 2 in % 3.
Error #1027: method_info % 1 exceeds the limit of method_count = % 2.
Error #1028: disp_id % 1 exceeds the limit of max_disp_id = % 2 in % 3.
Error #1029: disp_id % 1 is not defined on % 2.
Error #1030: stack depth asymmetry. % 1! = % 2.
Error #1031: The range depth is asymmetrical. % 1! = % 2.
Error #1032: The cpool index % 1 is out of the range of % 2.
Error #1033: cpool item % 1 type error.
Error #1034: forced conversion type failed: % 1 cannot be converted to % 2.
Error #1035: An invalid super expression exists in method % 1.
Error #1037: The method % 1 cannot be assigned a value on % 2.
Error #1038: % 1 defined.
Error #1039: The method cannot be verified before it is referenced.
Error #1040: The right side of instanceof must be a class or function.
Error #1041: the right side of the operator must be a class.
Error #1042: Not An ABC file. Major_version = % 1 minor_version = % 2.
Error #1043: code_length = % 1 is invalid.
Error #1044: methodinfo-% 1 does not support flags = % 2.
Error #1045: trait kind = % 1 is not supported.
Error #1046: When methodinfo-% 1 is referenced, It is not defined.
Error #1047: the entry point is not found.
Error #1049: The prototype object must be a vanilla object.
Error #1050: % 1 cannot be converted to the original type.
Error #1051: Earlier bound access to % 1 is illegal.
Error #1052: The URI passed to the % 1 function is invalid.
Error #1053: overwrite % 1 in % 2.
Error #1054: An invalid range or target offset exists in the exception handling function.
Error #1056: failed to create Attribute % 1 for % 2.
Error #1057: % 1 can only contain methods.
Error #1058: Invalid operand type: % 1 must be % 2.
Error #1059: classinfo-% 1 is not defined when it is referenced.
Error #1060: classinfo % 1 exceeds the limit of class_count = % 2.
Error #1061: The Value % 1 cannot be converted to % 2 without losing precision.
Error #1063: % 1 does not match the number of parameters. There should be % 2, currently % 3.
Error #1064: method % 1 cannot be called as the constructor.
Error #1065: Variable % 1 is not defined.
Error #1066: function ('function body') format is not supported.
Error #1067: the built-in method % 1 contains an invalid method body.
Error #1068: % 1 and % 2 cannot be consistent.
Error #1069: Property % 1 cannot be found on % 2, and no default value exists.
Error #1070: method % 1 not found on % 2
Error #1071: function % 1 has been bound to % 2.
Error #1072: disp_id 0 is invalid.
Error #1073: Because disp_id % 2 is repeated, the non-override method % 1 has been replaced.
Error #1074: % 2 illegal write to read-only attribute % 1 exists.
Error #1075: math is not a function.
Error #1076: math is not a constructor.
Error #1077: % 2: Illegal reading of write-only attribute % 1 exists.
Error #1078: Invalid opcode/multiname combination: % 1.
Error #1079: built-in methods are not allowed to load code.
Error #1080: invalid namespace value.
Error #1081: Property % 1 cannot be found on % 2, and no default value exists.
Error #1082: the default namespace is not set.
Error #1083: the prefix "% 1" of element "% 2" is not bound.
Error #1084: the element or attribute ("% 1") does not match the QNAME definition: QNAME: = (ncname ':')? Ncname.
Error #1085: the element type "% 1" must end with the matching end mark.
The Error #1086: % 1 method can only be used to include a list of a single project.
Error #1087: The index XML cannot be assigned a value.
Error #1088: The tag format behind the root element in the document must be correct.
Error #1089: you cannot assign values to the list of multiple projects.
Error #1090: XML analyzer failed: the element format is incorrect.
Error #1091: XML analyzer failed: the CDATA section is not complete.
Error #1092: XML analyzer failed: XML declaration is not completed.
Error #1093: XML analyzer failed: doctype declaration is not completed.
Error #1094: XML analyzer failed: the comment has not ended.
Error #1095: XML analyzer failed: the property has not ended.
Error #1096: XML analyzer failed: the element has not ended.
Error #1097: XML analyzer failed: the command being processed has not ended.
Error #1098: No namespace has an invalid prefix % 1.
Error #1100: the flag cannot be provided when one Regexp constructs another.
Error #1101: failed to verify method % 1 with an unknown range.
Error #1102: the default value of Type % 1 is invalid.
Error #1103: Class % 1 cannot extend the final base class.
Error #1104: the attribute "% 1" has been specified (for element "% 2 ").
Error #1107: the error message returned when the ABC data is corrupted. The Read Attempt is out of the permitted range.
Error #1108: The base class used by op_newclass opcode is incorrect.
Error #1109: Try to directly call the unbound function % 1 (called from method % 2 ).
Error #1110: % 1 cannot expand % 2.
Error #1111: % 1 cannot implement % 2.
Error #1112: the number of parameters for forced class conversion does not match. It should be 1, and the current value is % 1.
Error #1113: The op_newactivation used in the method does not have the need_activation flag.
Error #1114: The op_getglobalslot or op_setglobalslot used does not have a global range.
Error #1115: % 1 is not a constructor.
Error #1116: The second parameter of function. Prototype. Apply must be an array.
Error #1117: Invalid XML name: % 1.
Error #1118: An invalid loop exists between nodes.
Error #1119: the operand of Type % 1 does not support the delete operator.
Error #1120: failed to delete attribute % 1 for % 2.
Error #1121: method % 1 has duplicate method bodies.
Error #1122: The interface method % 1 contains an invalid method body.
Error #1123: Type % 1 does not support filter operators.
Error #1124: op_hasnext2 requires that the object and index are in different registers.

Reprinted from: http://www.cnblogs.com/ksuifeng/archive/2009/07/03/1516039.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.