随笔-75  评论-193  文章-5  trackbacks-0

P986

Using ActionScript expressions in curly braces
在{}中使用ActionScript表达式

Using an E4X expression in curly braces
在{}中使用E4X表达式

A binding expression in curly braces or an <mx:Binding> tag can contain an ECMAScript for
XML (E4X) expression when the source of a binding is a bindable property of type XML.
当绑定的属性是XML类型时,在{}中的绑定表达式或者在<mx:Binding>标签中可以包含一个ECMAScript for XML的表达式。

当使用E4X表达式时,必须对XML熟悉。

P987页的例子应该试一下,看看当xml中有两个description时,其输出结果会如何?
当有两个description时,会迭代将description输出,不过需要注意的是输出结果格式如下:
   <description>Big Screen Television</description>
   <description>DVD Player</description>

Using ActionScript functions in curly braces
在{}中使用ActionScript函数

If the inString property is not passed as an argument, but is referenced from within the
function, the function does not get invoked when the inString property changes.
如果inString属性没有作为参数进行传递,而是在函数内部被引用了,当inString属性发生变化时,函数是不会被调用的。

以上三种情况的例子在文档中有详细的描述,就不在这里贴出了。

最近忙于项目上线,只能每天少看一点了:(

posted on 2006-11-03 00:19 The Matrix 阅读(293) 评论(0)  编辑  收藏 所属分类: Flex2

只有注册用户登录后才能发表评论。


网站导航: