1025: Cannot redefine a final method.
Description of Error
You have a method marked override, but the method you’re trying to override has been marked as final.
1020: Method marked override must override another method
Posted by myk in compile-time, error on September 17th, 2009
Description of Error
You have a method marked override, but there’s no visible method with that name in the superclass.
1023: Incompatible Override
Posted by myk in compile-time, error on September 17th, 2009
Description of Error
When overriding a method (replacing the super class’s method with your own of the same name) you are required to match input parameters and types, return type, access specifier and namespace exactly. If you don’t you’ll get this error.
1010: The override attribute may be used only on class property definitions
Posted by myk in compile-time, error on September 17th, 2009
Description of Error
You’re attempting to override a method or property that’s not at the class level. For instance, you will get this error if you attempt to override a function nested within a class method.
1007 : A super statement can be used only inside class instance constructors.
Posted by myk in compile-time, error on September 16th, 2009
Description of Error
A 1007 error means that you tried to call the super() method anywhere other than in your constructor.
1006: A super expression can be used only inside class instance methods.
Posted by myk in compile-time, error on September 16th, 2009
Description of Error
You’re attempting to call super.someMethod() from a static method in a child class, or from outside the package definition.
1004: Namespace was not found or is not a compile-time constant.
Posted by myk in compile-time, error on September 16th, 2009
Description of Error
The compiler can’t find the Namespace you’re referring to.
1003 : Access specifiers are not allowed with namespace attributes.
Posted by myk in compile-time, error on September 16th, 2009
Description of Error
You get this error when you try to use both a custom namespace and an access modifier (”public”, “private”, “protected” or “internal”) in a class, method or property definition. “Static”, “Dynamic” and “Final” are still ok.
1000: Ambiguous Reference to …
Posted by myk in compile-time, error on September 16th, 2009
Description of Error
This error comes up when a variable or function name could potentially be referring to more than one thing, and the compiler needs clarification as to which one you need. You may run into this if you are using namespaces, for instance – if you have two methods called method(), but one is in the foo namespace and one is in the bar namespace, then you need to specify the desired namespace when calling method().
1120: Access of undefined property…
Posted by myk in compile-time, error on July 15th, 2009
Description of Error
This error means that you’re trying to act on a property (could be a variable, a movie clip, etc) that Flash doesn’t recognize because it doesn’t technically exist yet. The name of the property flash is trying to access is displayed in the error, so it’s usually pretty easy to figure out exactly what’s gone wrong.
Most Recent Comments