Package | mx.utils |
Class | public class XMLNotifier |
watchXML()
, passing in the same notification
function that you would pass to XML.notification.
Use unwatchXML()
to remove that notification.
Method | Defined by | ||
---|---|---|---|
XMLNotifier(x:XMLNotifierSingleton)
Constructor.
| XMLNotifier | ||
[static]
Get the singleton instance of the XMLNotifier.
| XMLNotifier | ||
unwatchXML(xml:Object, notifiable:IXMLNotifiable):void
Given an XML or XMLList, remove the specified notification function.
| XMLNotifier | ||
watchXML(xml:Object, notifiable:IXMLNotifiable, uid:String = null):void
Given an XML or XMLList, add the notification function
to watch for changes.
| XMLNotifier |
XMLNotifier | () | constructor |
public function XMLNotifier(x:XMLNotifierSingleton)
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 | () | method |
public static function getInstance():XMLNotifier
Get the singleton instance of the XMLNotifier.
ReturnsXMLNotifier |
unwatchXML | () | method |
public function unwatchXML(xml:Object, notifiable:IXMLNotifiable):void
Given an XML or XMLList, remove the specified notification function.
Parametersxml:Object — XML/XMLList object to un-watch.
|
|
notifiable:IXMLNotifiable — Function notification function.
|
watchXML | () | method |
public function watchXML(xml:Object, notifiable:IXMLNotifiable, uid:String = null):void
Given an XML or XMLList, add the notification function to watch for changes.
Parametersxml:Object — XML/XMLList object to watch.
|
|
notifiable:IXMLNotifiable — Function that needs to be called.
|
|
uid:String (default = null ) — UID for object
|