8/25/2010 3:06:46 AM
Title:
pagination in list
how to do simple pagination in list? i had some some question with option in xml and i want to display the per page one question in container with front and back option .how can i do it?
8/25/2010 3:47:16 AM
whats the role of list here , you can simply display the question in a label on click of next set the value of label to the next question. Create an array of all the questions
var arrayQuestion:Array;
var currentQuestion:Number=0;
//On next button click
myLabel= arrayQuestion[currentQuestion++];
//on back button click
myLabel= arrayQuestion[currentQuestion--];
8/25/2010 10:33:33 AM
see this link to use Paged List component to display data with next and back buttons
https://www.adobe.com/devnet/flex/samples/fig_pagedlist/