P986
Using ActionScript expressions in curly braces
在{}中使用ActionScript表達(dá)式
Using an E4X expression in curly braces
在{}中使用E4X表達(dá)式
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.
當(dāng)綁定的屬性是XML類型時(shí),在{}中的綁定表達(dá)式或者在<mx:Binding>標(biāo)簽中可以包含一個(gè)ECMAScript for XML的表達(dá)式。
當(dāng)使用E4X表達(dá)式時(shí),必須對(duì)XML熟悉。
P987頁(yè)的例子應(yīng)該試一下,看看當(dāng)xml中有兩個(gè)description時(shí),其輸出結(jié)果會(huì)如何?
當(dāng)有兩個(gè)description時(shí),會(huì)迭代將description輸出,不過(guò)需要注意的是輸出結(jié)果格式如下:
???<description>Big Screen Television</description>
???<description>DVD Player</description>
Using ActionScript functions in curly braces
在{}中使用ActionScript函數(shù)
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屬性沒(méi)有作為參數(shù)進(jìn)行傳遞,而是在函數(shù)內(nèi)部被引用了,當(dāng)inString屬性發(fā)生變化時(shí),函數(shù)是不會(huì)被調(diào)用的。
以上三種情況的例子在文檔中有詳細(xì)的描述,就不在這里貼出了。
最近忙于項(xiàng)目上線,只能每天少看一點(diǎn)了:(
posted on 2006-11-03 00:19
The Matrix 閱讀(324)
評(píng)論(0) 編輯 收藏 所屬分類:
Flex2