Error Messages > Table of error messages
Table of error messagesThe following table contains a list of error messages returned by the Flash compiler. An explanation of each message is provided to aid you in troubleshooting your movie files.
Error message | Description |
---|---|
Property <property> does not exist |
A property that does not exist was encountered. For example, |
Operator <operator> must be followed by an operand |
An operator without an operand was encountered. For example, An operator is followed by an invalid operand. For example, |
Syntax error |
This message is issued whenever a nonspecific syntax error is encountered. |
Expected a field name after '.' operator |
You must specify a valid field name when using the |
Expected <token> |
An invalid or unexpected token was encountered. For example, in the syntax below, the token
|
Initializer list must be terminated by <terminator> |
An object or array initializer list is missing the closing ] or }. |
Identifier expected |
An unexpected token was encountered in place of an identifier. In the example below, 3 is not a valid identifier.
|
The JavaScript '<construct>' construct is not supported |
A JavaScript construct that is not supported by ActionScript was encountered. This message appears if any of the following JavaScript constructs are used: |
Left side of assignment operator must be variable or property |
An assignment operator was used, but the left side of the assignment was not a legal variable or property. |
Statement block must be terminated by '}' |
A group of statements was declared within curly braces, but the closing brace is missing. |
Event expected |
An |
Invalid event |
The script contains an invalid mouse or clip event. For a list of valid mouse and clip events, see the On(MouseEvent) and OnClipEvent entries in the ActionScript dictionary chapter. |
Key code expected |
You need to specify a key code. See Appendix B for a list of key codes. |
Invalid key code |
The specified key code does not exist. |
Trailing garbage found |
The script or expression parsed correctly but contained additional trailing characters that could not be parsed |
Illegal function |
A named function declaration was used as an expression. Named function declarations must be statements. Valid: Invalid: |
Function name expected |
The name specified for this function is not a valid function name. |
Parameter name expected |
A parameter (argument) name was expected in a function declaration, but an unexpected token was encountered. |
'else' encountered without matching 'if' |
An |
Scene type error |
The scene argument of a |
Internal error |
An internal error occurred in the ActionScript compiler. Please send the FLA file that generated this error to Macromedia, with detailed instructions on how to reproduce the message. |
Hexadecimal digits expected after 0x |
The sequence 0x was encountered, but the sequence was not followed by valid hexadecimal digits. |
Error opening #include file |
There was an error opening a file included with the |
Malformed #include directive |
An
|
Multi-line comment was not terminated |
A multi-line comment started with |
String literal was not properly terminated |
A string literal started with an opening quotation mark (single or double) is missing the closing quotation mark. |
Function <function> takes <count> parameters |
A function was called, but an unexpected number of parameters were encountered. |
Property name expected in GetProperty |
The |
Parameter <parameter> cannot be declared multiple times |
A parameter name appeared multiple times in the parameter list of a function declaration. All parameter names must be unique. |
Variable <variable> cannot be declared multiple times |
A variable name appeared multiple times in a |
'on' handlers may not be nested within other 'on' handlers |
An |
Statement must appear within on handler |
In the actions for a button instance, a statement was declared without a surrounding |
Statement must appear within onClipEvent handler |
In the actions for a movie clip instance, a statement was declared without a surrounding |
Mouse events are permitted only for button instances |
A button event handler was declared in a frame action list or a movie clip instance's action list. Button events are permitted only in the action lists of button instances. |
Clip events are permitted only for movie clip instances |
A clip event handler was declared in a frame action list or a button instance's action list. Clip events are permitted only in the action lists of movie clip instances. |