How to make pages from a xml list

Hi , i started a thread but i formulated my question bad.

here goes;

so i load a xml list and attachmovies with the for (i=0… code

say my xml is 26 nodes long, i only want to show per 10 items
then a next button / previous button appears to scroll through it
i know how to do that but.

how do i split it up? to when i press next the xml loads the next starting from the last one, not a number cuz i load various “sortings” like that

i use xpath.


path = "/jobs/item[@format='website']";
        format_array = mx.xpath.XPathAPI.selectNodeList(this.firstChild, path);
        counter.text = format_array.length;
        var i:Number;
        for (i=0; i<format_array.length; i++) {
               var sub = attachMovie("items_big", "knopsub"+i, i);

            sub .nameTXT.text = format_array*.attributes.name;
            sub .workTXT.text = format_array*.firstChild.nodeValue;
            sub .formatTXT.text = format_array*.attributes.format;

offcourse there is more code but i don’t ought it to be usefull to place it

so to resume
can / is anyone willing to help me

i am looking for a way to split the list to 10
show up prev & next buttons (i know that) and when pressed
they scroll through the xml to load the corresponding next or previous items

probably this is covered tons of times, yet i don’t know the proper english to search on it.

best regards & thnx