Only 10 xml records at a time

How can i make sure i only can see the last 10 records of a xml file in flash 8?

and when clicked on a button goes to the rest after that 10 records. (this is easy)

but i don’t know how to stop at 10 records at the homepage

someone who can help me?

thanx

Jos