Xml

Ok I have been progressing nicely in AS3 and XML but I am still having trouble with some of the harder xml features. I am looking to create a xml list that shows up to 10 people and I want to create a numbers menu underneath (Page: 1 | 2). Basically if more than 10 are added then it creates 2 and if there is more than 29 it creates 3. I hope this makes sense. I can get the list to extract everything but cant seem to find out how to create a menu to cycle through my nodes. Thank you for any guidance.