Home directory for Malawi's wwwroot
Duncan Ewan
2021-02-19 3e758c29e0fde36fc088efcfc88f9a3014432b64
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//****************************************************************************
// ActionScript Standard Library
// XML Document Object Model
//****************************************************************************
 
intrinsic class XMLNode
{
    var attributes:Object;
    var childNodes:Array;
    var firstChild:XMLNode;
    var lastChild:XMLNode;
    var nextSibling:XMLNode;
    var nodeName:String;
    var nodeType:Number;
    var nodeValue:String;
    var parentNode:XMLNode;
    var previousSibling:XMLNode;
 
    function XMLNode(type:Number, value:String);
 
    function cloneNode(deep:Boolean):XMLNode;
    function removeNode():Void;
    function insertBefore(newChild:XMLNode,insertPoint:XMLNode):Void;
    function appendChild(newChild:XMLNode):Void;
    function toString():String;
 
    // ITreeDataProvider
    function hasChildNodes() : Boolean;
    function getChildNodes() : Array;
    
    function getData() : Object;
    function setData(data : Object);
    
    function addTreeNode(arg,data);
    function addTreeNodeAt(index,arg,data);
    function removeTreeNodeAt(index);
    function removeTreeNode();
    function removeAll();
    function getTreeNodeAt(index : Number);
 
    function indexOf(item : Object) : Number;
    
    function getProperty(propertyName : String);
    function setProperty(propertyName : String,propertyValue);
 
    function isTreeDataProvider() : Boolean;
    
    function addEventListener(event:String, handler):Void;
    function removeEventListener(event:String, handler):Void;
 
    function removeMenuItem(Void) : Object
    function addMenuItemAt(index:Number, arg:Object) : Object
    function addMenuItem(arg : Object) : Object
    function removeMenuItemAt(index:Number) : Object
    function getMenuItemAt(index:Number) : Object
 
    // We add this one manually by modifying the prototype of XMLNode (see mx.services.Namespace.as).
    function getElementsByLocalName(name:String):Array;
}