5.3.2 Lexical references

q::[expr]
q::id
id

Lexical references result from expressions involving a name but no base object. Whether a lexical reference is qualified or unqualified, with a literal identifier or expression, it results in a search of the scope chain of the lexical environment until either a match is found or the last scope is searched.

The scope chain might include the following kinds of scopes:

The base object of a lexical reference is computed through the following steps:


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/specs/actionscript/3/as3_specification49.html