In addition to operators, special words, called keywords , are reserved in Flash. Keywords are reserved for specific uses in ActionScript, so they cannot be used as variable names . Following is a list of Flash keywords:
break
case
class
continue
default
delete
dynamic
else
extends
for
function
get
if
implements
import
in
instanceof
interface
new
private
public
return
set
static
switch
this
typeof
var
void
while
with
As we proceed in our quest to build games , we'll encounter various keywords along the way. I'll explain each one as we come to it. You should note that keywords will be colored differently when you type them into the Actions panel. That coloring will help you identify them.
Note | There are reserved words in Flash other than the keywords. These are color -coded in the Actions panel but can often be used as variable names. Naming a variable the same thing as a reserved word is a bad idea, though. |