ActionScript 3 Language Specification |
|||
| ActionScript 3.0 Language Specification > 5 Names | |||
A name consists of a string and a namespace. Names are introduced into a particular scope by a definition. Those definitions are referred to by names that result from expressions.
The qualified forms result in a single name consisting of the given qualifier and identifier. The unqualified forms result in a set of names consisting of strings qualified by the open namespaces.
The visibility of an identifier is controlled by the set of open namespaces. The set of open namespaces includes all of the implicitly opened namespaces and the namespaces opened by the user. The implicitly opened namespaces are as follows:
The namespaces opened by the user are controlled by the use namespace directives that are in scope. For example:
namespace mx = "http://macromedia.com/mx" use namespace(mx) o.m()
In this example, the reference to o.m() will involve the names qualified by the namespace mx as well as the implicitly opened namespaces: public, internal, etc.
The terms namespace and qualifier are used interchangeably when talking about qualified names.
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/specs/actionscript/3/as3_specification44.html
Comments
Constantiner said on Mar 2, 2006 at 12:04 PM :