ActionScript 3 Language Specification |
|||
| ActionScript 3.0 Language Specification > 5 Names > 5.3 Name lookup > 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:
with statement will have a with frame as the inner most scope on the scope chain.this object on its scope chain.The base object of a lexical reference is computed through the following steps:
s be the list of scopes enclosing the reference being evaluated.n be the qualified name or set of qualified names that result from the operation described in section 5.3.1.1 Unqualified object references.s starting from the innermost scope and continuing outwards until a scope is found that contains a property that matches n, or all scopes have been searched.
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