• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Appendix A. Error Messages

Appendix A. Error Messages

Macromedia Flash Basic 8 and Macromedia Flash Professional 8 provide compile-time error reporting when you publish to ActionScript 2.0 (the default). The following table contains a list of error messages that the Flash compiler can generate:

Error numberMessage text
1093A class name was expected.
1094A base class name is expected after the ‘extends’ keyword.
1095A member attribute was used incorrectly.
1096The same member name may not be repeated more than once.
1097All member functions need to have names.
1099This statement is not permitted in a class definition.
1100A class or interface has already been defined with this name.
1101Type mismatch.
1102There is no class with the name ‘<ClassName>’.
1103There is no property with the name ‘<propertyName>’.
1104A function call on a non-function was attempted.
1105Type mismatch in assignment statement: found [lhs-type] where [rhs-type] is required.
1106The member is private and cannot be accessed.
1107Variable declarations are not permitted in interfaces.
1108Event declarations are not permitted in interfaces.
1109Getter/setter declarations are not permitted in interfaces.
1110Private members are not permitted in interfaces.
1111Function bodies are not permitted in interfaces.
1112A class may not extend itself.
1113An interface may not extend itself.
1114There is no interface defined with this name.
1115A class may not extend an interface.
1116An interface may not extend a class.
1117An interface name is expected after the ‘implements’ keyword.
1118A class may not implement a class, only interfaces.
1119The class must implement method ‘methodName’ from interface ‘interfaceName’.
1120The implementation of an interface method must be a method, not a property.
1121A class may not extend the same interface more than once.
1122The implementation of the interface method doesn’t match its definition.
1123This construct is only available in ActionScript 1.0.
1124This construct is only available in ActionScript 2.0.
1125Static members are not permitted in interfaces.
1126The expression returned must match the function’s return type.
1127A return statement is required in this function.
1128Attribute used outside class.
1129A function with return type Void may not return a value.
1130The ‘extends’ clause must appear before the ‘implements’ clause.
1131A type identifier is expected after the ‘:’.
1132Interfaces must use the ‘extends’ keyword, not ‘implements’.
1133A class may not extend more than one class.
1134An interface may not extend more than one interface.
1135There is no method with the name ‘<methodName>’.
1136This statement is not permitted in an interface definition.
1137A set function requires exactly one parameter.
1138A get function requires no parameters.
1139Classes may only be defined in external ActionScript 2.0 class scripts.
1140ActionScript 2.0 class scripts may only define class or interface constructs.
1141The name of this class, ‘<A.B.C>’, conflicts with the name of another class that was loaded, ‘<A.B>’. (This error occurs when the ActionScript 2.0 compiler cannot compile a class because of the full name of an existing class is part of the conflicting class’ name. For example, compiling class mx.com.util generates error 1141 if class mx.com is a compiled class.)
1142The class or interface ‘<Class or Interface Name>’ could not be loaded.
1143Interfaces may only be defined in external ActionScript 2.0 class scripts.
1144Instance variables cannot be accessed in static functions.
1145Class and interface definitions cannot be nested.
1146The property being referenced does not have the static attribute.
1147This call to super does not match the superconstructor.
1148Only the public attribute is allowed for interface methods.
1149The import keyword cannot be used as a directive.
1150You must export your Flash movie as Flash 7 to use this action.
1151You must export your Flash movie as Flash 7 to use this expression.
1152This exception clause is placed improperly.
1153A class must have only one constructor.
1154A constructor may not return a value.
1155A constructor may not specify a return type.
1156A variable may not be of type Void.
1157A function parameter may not be of type Void.
1158Static members can only be accessed directly through classes.
1159Multiple implemented interfaces contain same method with different types.
1160There is already a class or interface defined with this name.
1161Classes, interfaces, and built-in types may not be deleted.
1162There is no class with this name.
1163The keyword ‘<keyword>’ is reserved for ActionScript 2.0 and cannot be used here.
1164Custom attribute definition was not terminated.
1165Only one class or interface can be defined per ActionScript 2.0 .as file.
1166The class being compiled, ‘<A.b>’, does not match the class that was imported, ‘<A.B>’. (This error occurs when a class name is spelled with a different case from an imported class. For example, compiling class mx.com.util generates error 1166 if the statement import mx.Com appears in the util.as file.)
1167You must enter a class name.
1168The class name you have entered contains a syntax error.
1169The interface name you have entered contains a syntax error.
1170The base class name you have entered contains a syntax error.
1171The base interface name you have entered contains a syntax error.
1172You must enter an interface name.
1173You must enter a class or interface name.
1174The class or interface name you have entered contains a syntax error.
1175‘variable’ is not accessible from this scope.
1176Multiple occurrences of the ‘get/set/private/public/static’ attribute were found.
1177A class attribute was used incorrectly.
1178Instance variables and functions may not be used to initialize static variables.
1179Runtime circularities were discovered between the following classes: <list of user-defined classes>. This runtime error indicates that your custom classes are incorrectly referencing each other.
1180The currently targeted Flash Player does not support debugging.
1181The currently targeted Flash Player does not support the releaseOutside event.
1182The currently targeted Flash Player does not support the dragOver event.
1183The currently targeted Flash Player does not support the dragOut event.
1184The currently targeted Flash Player does not support dragging actions.
1185The currently targeted Flash Player does not support the loadMovie action.
1186The currently targeted Flash Player does not support the getURL action.
1187The currently targeted Flash Player does not support the FSCommand action.
1188Import statements are not allowed inside class or interface definitions.
1189The class ‘<A.B>’ cannot be imported because its leaf name is already resolved to the class that is being defined, ‘<C.B>’. (For example, compiling class util generates error 1189 if the statement import mx.util appears in the util.as file.)
1190The class ‘<A.B>’ cannot be imported because its leaf name is already resolved to a previously imported class ‘<C.B>’. (For example, compiling import jv.util generates error 1190 if the statement import mx.util also appears in the AS file.)
1191A class’ instance variables may only be initialized to compile-time constant expressions.
1192Class member functions cannot have the same name as a superclass’ constructor function.
1193The name of this class, ‘<ClassName>’, conflicts with the name of another class that was loaded.
1194The superconstructor must be called first in the constructor body.
1195The identifier ‘<className>’ will not resolve to built-in object ‘<ClassName>’ at runtime.
1196The class ‘<A.B.ClassName>’ needs to be defined in a file whose relative path is <‘A.B>’.
1197The wildcard character ‘*’ is misused in the ClassName ‘<ClassName>’.
1198The member function ‘<classname>’ has a different case from the name of the class being defined, ‘<ClassName>’, and will not be treated as the class constructor at runtime.
1199The only type allowed for a for-in loop iterator is String.
1200A setter function may not return a value.
1201The only attributes allowed for constructor functions are public and private.
1202The file ‘toplevel.as’, which is required for typechecking ActionScript 2.0, could not be found. Please make sure the directory ‘$(LocalData)/Classes’ is listed in the global classpath of the ActionScript Preferences.
1203Branch between <spanStart> and <spanEnd>> exceeds 32K span.
1204There is no class or package with the name ‘<packageName>’ found in package ‘<PackageName>’.
1205The currently targeted Flash Player does not support the FSCommand2 action.
1206Member function ‘<functionName>’ is larger than 32K.
1207Anonymous function around line <lineNumber> exceeds 32K span.
1208Code around line <lineNumber> exceeds 32K span.
1210The package name ‘<PackageName>’ cannot also be used as a method name.
1211The package name ‘<PackageName>’ cannot also be used as a property name.
1212The ASO file for the class ‘<ClassName>’ could not be created. Please make sure the fully-qualified class name is short enough so that the ASO filename, ‘<ClassName.aso>’, is less than 255 characters.
1213This type of quotation mark is not allowed in ActionScript. Please change it to a standard (straight) double quote.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint