Saturday, January 12, 2013

Keywords and reserved words

Reserved words are words that you cannot use as identifiers in your code because the words are reserved for use by ActionScript. Reserved words include lexical keywords, which are removed from the program namespace by the compiler. The compiler will report an error if you use a lexical keyword as an identifier. The following table lists ActionScript 3.0 lexical keywords.

  • as 
  • break 
  • case 
  • catch 
  • class 
  • const 
  • continue 
  • default 
  • delete 
  • do 
  • else 
  • extends 
  • false 
  • finally
  • for
  • function 
  • if 
  • implements
  • import 
  • in 
  • instanceof 
  • interface 
  • internal 
  • is 
  • native 
  • new 
  • null 
  • package 
  • private 
  • protected 
  • public
  • return
  • super
  • switch
  • this
  • throw
  • to
  • true
  • try
  • typeof 
  • use 
  • var 
  • void 
  • while 
  • with 
There is a small set of keywords, called syntactic keywords, that can be used as identifiers, but that have special meaning in certain contexts. The following table lists ActionScript 3.0 syntactic keywords.
  • each 
  • get 
  • set 
  • namespace
  • include
  • dynamic
  • final
  • native
  • override
  • static

Programming Actionscript 3. Powered by Blogger.