[FMX] XML in scollpane with checkboxes problem

Hey guys,

Well this is the situation:
We have 1 scollpane (inst.name: scroller)
in this scrollpane is a mc called myMovie, this movieclip contains a few textfields and a checkbox (also an image but this is irrelevant).

So this movieclip keeps appearing until the XML is read completely.
The result is that we get a scrolling pane with a serie of checkboxen with texts.

One of those textfields containts the “price” of the item.
Outside the scrollpane there is a dynamic textfield which should display the sum of all the “items” which have been checked. But it doesnt.

This is the code in the first frame:

function LoadProductData() {
scroller.setScrollContent("contentHolder");
var scrollContent = scroller.getScrollContent();
var BaseNode = thisXML.childNodes[0];
for (i=0; i<BaseNode.childNodes.length; i++) {
ThisNode = BaseNode.childNodes*;
scrollContent.attachMovie("myMovie", "myMovie"+i, i);
with (scrollContent["myMovie"+i]) {
_y = -178*i;
nmr.text = ThisNode.attributes["number"];
info.text = ThisNode.firstChild.nodeValue;
prijs_txt.text = ThisNode.attributes["price"];
place.loadMovie(ThisNode.attributes["image"]);
}
}
scroller.refreshPane();
}
//_root.som_txt.text = "kutnerd";
function totalEuro() {
if (check1.selected=true) {
_root.som = _root.som+Number(prijs);
} else {
_root.som = _root.som-Number(prijs);
}
// end if
som_txt.text = "€"+_root.som+",-";
}
// End of the function
check1.addEventListener("change", totalEuro);

this is also in the first frame but other layer:

 //maak een nieuw XML object
thisXML = new XML();
thisXML.ignoreWhite = true;
thisXML.onLoad = LoadProductData;
thisXML.load("product.xml");
stop(); 

now the checkbox is called “check1” as inst. name.
the scrollpane inst name is “scroller”
the dyn textfield outside the scolllpane is “som_txt”
the dyn textfield inside the mc in the scrollpane is “prijs”

XML content:

<?xml version="1.0" standalone="yes"?>
<products>
<product number="92642" image="img/001.jpg" price="245">Looking for the ultimate step toward greatness? Check out the Vic Carbon Epoxy. Here, instead of using polyester to bond the carbon to the foam, they use epoxy. This creates a board that reportedly holds its rocker better, is generally lighter, and is more resistant to sand abrasion. Unfortunately, the epoxy is much harder for the manufacturer to work with, so it costs a bit more. Is it worth the extra €? Oh yeah. 54x20.5 Double carbon here.</product>
<product number="95632" image="img/002.jpg" price="163">Looking for the ultimate step toward greatness? Check out the Vic Carbon Epoxy. Here, instead of using polyester to bond the carbon to the foam, they use epoxy. This creates a board that reportedly holds its rocker better, is generally lighter, and is more resistant to sand abrasion. Unfortunately, the epoxy is much harder for the manufacturer to work with, so it costs a bit more. Is it worth the extra €? Oh yeah. 54x20.5 Double carbon here.</product>
<product number="75623" image="img/003.jpg" price="252">Looking for the ultimate step toward greatness? Check out the Vic Carbon Epoxy. Here, instead of using polyester to bond the carbon to the foam, they use epoxy. This creates a board that reportedly holds its rocker better, is generally lighter, and is more resistant to sand abrasion. Unfortunately, the epoxy is much harder for the manufacturer to work with, so it costs a bit more. Is it worth the extra €? Oh yeah. 54x20.5 Double carbon here.</product>
<product number="85236" image="img/004.jpg" price="199">Looking for the ultimate step toward greatness? Check out the Vic Carbon Epoxy. Here, instead of using polyester to bond the carbon to the foam, they use epoxy. This creates a board that reportedly holds its rocker better, is generally lighter, and is more resistant to sand abrasion. Unfortunately, the epoxy is much harder for the manufacturer to work with, so it costs a bit more. Is it worth the extra €? Oh yeah. 54x20.5 Double carbon here.</product>
<product number="23568" image="img/005.jpg" price="225">Looking for the ultimate step toward greatness? Check out the Vic Carbon Epoxy. Here, instead of using polyester to bond the carbon to the foam, they use epoxy. This creates a board that reportedly holds its rocker better, is generally lighter, and is more resistant to sand abrasion. Unfortunately, the epoxy is much harder for the manufacturer to work with, so it costs a bit more. Is it worth the extra €? Oh yeah. 54x20.5 Double carbon here.</product>
<product number="86234" image="img/006.jpg" price="150">Looking for the ultimate step toward greatness? Check out the Vic Carbon Epoxy. Here, instead of using polyester to bond the carbon to the foam, they use epoxy. This creates a board that reportedly holds its rocker better, is generally lighter, and is more resistant to sand abrasion. Unfortunately, the epoxy is much harder for the manufacturer to work with, so it costs a bit more. Is it worth the extra €? Oh yeah. 54x20.5 Double carbon here.</product>
<product number="45263" image="img/007.jpg" price="179">Looking for the ultimate step toward greatness? Check out the Vic Carbon Epoxy. Here, instead of using polyester to bond the carbon to the foam, they use epoxy. This creates a board that reportedly holds its rocker better, is generally lighter, and is more resistant to sand abrasion. Unfortunately, the epoxy is much harder for the manufacturer to work with, so it costs a bit more. Is it worth the extra €? Oh yeah. 54x20.5 Double carbon here.</product>
<product number="65823" image="img/008.jpg" price="220">Looking for the ultimate step toward greatness? Check out the Vic Carbon Epoxy. Here, instead of using polyester to bond the carbon to the foam, they use epoxy. This creates a board that reportedly holds its rocker better, is generally lighter, and is more resistant to sand abrasion. Unfortunately, the epoxy is much harder for the manufacturer to work with, so it costs a bit more. Is it worth the extra €? Oh yeah. 54x20.5 Double carbon here.</product>
<product number="15963" image="img/009.jpg" price="315">Looking for the ultimate step toward greatness? Check out the Vic Carbon Epoxy. Here, instead of using polyester to bond the carbon to the foam, they use epoxy. This creates a board that reportedly holds its rocker better, is generally lighter, and is more resistant to sand abrasion. Unfortunately, the epoxy is much harder for the manufacturer to work with, so it costs a bit more. Is it worth the extra €? Oh yeah. 54x20.5 Double carbon here.</product>
<product number="62354" image="img/010.jpg" price="200">Looking for the ultimate step toward greatness? Check out the Vic Carbon Epoxy. Here, instead of using polyester to bond the carbon to the foam, they use epoxy. This creates a board that reportedly holds its rocker better, is generally lighter, and is more resistant to sand abrasion. Unfortunately, the epoxy is much harder for the manufacturer to work with, so it costs a bit more. Is it worth the extra €? Oh yeah. 54x20.5 Double carbon here.</product>
</products>

hope this is clear and that you can help me.
ask anything and i will answer.

you can download the zip with needed files here:

http://www.xs4all.nl/~shls0290/xml3.zip

grtz