隨筆-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
          主站蜘蛛池模板: 曲阜市| 阿拉善右旗| 保定市| 上高县| 清涧县| 二连浩特市| 武威市| 泰宁县| 会理县| 新河县| 辽中县| 丰县| 蓬莱市| 江西省| 上杭县| 鱼台县| 确山县| 湘阴县| 土默特左旗| 河池市| 邳州市| 图片| 东台市| 博野县| 长寿区| 临清市| 河北区| 博爱县| 溧阳市| 晋宁县| 无极县| 十堰市| 唐海县| 平潭县| 台山市| 永胜县| 米林县| 视频| 唐海县| 通辽市| 金山区|