隨筆-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 閱讀(327) 評論(0)  編輯  收藏 所屬分類: Flex2
          主站蜘蛛池模板: 静海县| 新安县| 连平县| 永宁县| 贵州省| 惠东县| 陈巴尔虎旗| 新竹市| 大邑县| 横山县| 大兴区| 广德县| 华容县| 丹巴县| 香格里拉县| 淮南市| 凌海市| 宿州市| 海安县| 肥乡县| 斗六市| 高尔夫| 鄂尔多斯市| 余姚市| 呼玛县| 林周县| 乐陵市| 甘南县| 嘉黎县| 敖汉旗| 阆中市| 石林| 苗栗县| 池州市| 长宁县| 镇巴县| 东港市| 安义县| 郧西县| 广南县| 喀什市|