ActionScript 3 Language Specification |
|||
| ActionScript 3.0 Language Specification > 1 Tutorial introduction > 1.2 Expressions | |||
Here are some examples of expressions:
x = 1 + 2 x = y() x = y..z x = o.ns::id
Expressions evaluate to values:
1+2 evaluates to 3.y() evaluates to the result of calling the function y with no arguments.y..z evaluates to the set of all properties identified by z in the value of y and the descendants of y. The descendants accessor operator (..) is part of the ActionScript 3.0 implementation of ECMAScript for XML (E4X).o.ns::id evaluates to the value of the property ns::id of the value of o, where o represents an object, ns represents a namespace, and id represents an identifier.
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/specs/actionscript/3/as3_specification4.html