Pagination in AS 3.0!

Hi, i HAVE 12 images in a folder and im loading these through xml dynamically currently all images are shown but three in a row so that 4 rows are populated i want load only 6 images per page ???

i have implemented a technique first loop is creating rows and the second loop is placing 3 images per row now i want to generate pages i think i have explained wat i want…

here is the function

  function loadimage(e:Event):void
                {
                    xml = new XML(e.target.data);
                    var _Initialx:Number = -5; 
                    var _Initialy:Number = 280; 
                    var k:Number=0;
                    var count:Number = 6;
               
                    //this loop is creating rows
                    for(var i:int = 0; i < Math.round(xml.images.length()/3); i++)
                    {
                        
                        for(var j:Number=1; j <= 3; j++)//this is for 3 images per row
                        {
                                
                                
                                Imageload = new Loader();
                                
                                Imageload.load(new URLRequest ("images\\"+xml.images[k]));
                                //imgContainer.addChild(Imageload);
                                //Imageload.width = 500;
                                //Imageload.height = 400;
                                mclip = new mc();
                                mclip.graphics.beginFill(0xFFFFFF);
                                mclip.graphics.drawRect(Imageload.x - 79,Imageload.y -       65,mclip.width + 8,mclip.height + 8);
                                mclip.graphics.endFill();
                                mclip.name = "prod" + k;
                                mclip.LargeImg = "X" + xml.images[k];
                                mclip.assign(mclip.name, xml.images[k], mclip.LargeImg);
                                mclip.addChild(Imageload);                                
                                Imageload.x = -73;
                                Imageload.y = -55;    
                                //mclip.width = 155;
                                //mclip.width = 122;
                                imgContainer.addChild(mclip);
                                mclip.x = _Initialx + 180;
                                mclip.rotation = 35;
                                mclip.buttonMode = true;
                                _Initialx = mclip.x;
                                mclip.addEventListener(MouseEvent.CLICK, onClick);
                                mclip.addEventListener(MouseEvent.ROLL_OVER, Setproperty);
                                mclip.addEventListener(MouseEvent.ROLL_OUT, unSet);
                                mclip.y = _Initialy;
                                k++;
                                
                        }
                               
                        _Initialy += 200;
                        _Initialx = -5;
                    }
                    
                     this.addChild(imgContainer);
                     
                }

i want to implement pagination help plz…