Link to home
Start Free TrialLog in
Avatar of socross
socrossFlag for United Kingdom of Great Britain and Northern Ireland

asked on

XML, Xmllist and pagination

Hi there

I have a flash project which loads external data from XML documents. One contains information on PDF downloads that the site offers, each download has various attributes.

There is not enough room to include all these Download items on one page so I need to offer pagination. My issue come where I would like to dynamicly create the 'x' number of mc's required and populating them with the correct items!

I have tried loads of options but can't seem to find a solution. I have looked at creating a pages array which holds x number of pages items which each contain a set of objects required for that page! This works, and I can easily get the number of pages required dynamicly from the whole XML list but I can't work out how to split up the XML into chunk of 'x' items and adding them to this pages array?

Can anyone suggest the way to extract/ split up this info into the required format?

Or perhaps suggest a better way to tackle this, i am fairly new to as3 programming and am probably missing something very obvious.

Many thanks for your time


S
ASKER CERTIFIED SOLUTION
Avatar of blue-genie
blue-genie
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of socross

ASKER

Thanks for your pointers blue genie.

By mentioning a page counter you got me thinking a bit more clearly! All sorted by keeping track of the total page, current page! Thanks