套件 | mx.utils |
類別 | public class XMLNotifier |
繼承 | XMLNotifier Object |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
watchXML()
, passing in the same notification
function that you would pass to XML.notification.
Use unwatchXML()
to remove that notification.
公用方法
方法 | 定義自 | ||
---|---|---|---|
XMLNotifier(x:XMLNotifierSingleton)
Constructor. | XMLNotifier | ||
[靜態]
Get the singleton instance of the XMLNotifier. | XMLNotifier | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
Given an XML or XMLList, remove the specified notification function. | XMLNotifier | ||
會傳回指定之物件的基本值。 | Object | ||
Given an XML or XMLList, add the notification function
to watch for changes. | XMLNotifier |
建構函式詳細資料
XMLNotifier | () | 建構函式 |
public function XMLNotifier(x:XMLNotifierSingleton)
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Constructor.
XMLNotifier is a singleton class, so you do not use
the new
operator to create multiple instances of it.
Instead, call the static method XMLNotifider.getInstance()
to get the sole instance of this class.
x:XMLNotifierSingleton |
方法詳細資訊
getInstance | () | 方法 |
public static function getInstance():XMLNotifier
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Get the singleton instance of the XMLNotifier.
傳回值XMLNotifier — The XMLNotifier object.
|
unwatchXML | () | 方法 |
public function unwatchXML(xml:Object, notifiable:IXMLNotifiable):void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Given an XML or XMLList, remove the specified notification function.
參數
xml:Object — XML/XMLList object to un-watch.
| |
notifiable:IXMLNotifiable — Function notification function.
|
watchXML | () | 方法 |
public function watchXML(xml:Object, notifiable:IXMLNotifiable, uid:String = null):void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Given an XML or XMLList, add the notification function to watch for changes.
參數
xml:Object — XML/XMLList object to watch.
| |
notifiable:IXMLNotifiable — Function that needs to be called.
| |
uid:String (default = null ) — UID for object
|
Tue Jun 12 2018, 03:47 PM Z