hi there,
the following script does not function:
I hope that someone can help me.
It loads ok, but with the attributes something goes wrong
Code:
function verwerk(succes){
if (succes) {
//hier de xml omzetten in array's of objects
klijst.firstChild();
_parent._parent.blad.text = "letop: ";
trace(kLijst.childNodes.length);
for(i=0;i<=kLijst.childNodes.length;i++){
test=kLijst.childNodes[i];
trace(test.attributes.titel);
_parent._parent.blad.text+=test.attributes.titel;
}
}
}
function layout() {
// deze functie zorgt ervoor dat alles op zijn plek komt
}
check=0;
kLijst = new XML();
kLijst.ignoreWhite = true;
kLijst.onLoad = verwerk;
kLijst.load("kladblok.xml");
stop();
I use the followiong xml:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<kladblok>
<item titel="new" tekst="bla bla bal blabal balbla"></item>
<item titel="nieuwer" tekst="bla bla bal bal balbla"></item>
</kladblok>
thanks