Class scope loop

Hi

I have a base swf, which loops through xml, calling a page.as which pulls in seperate xml files and populates the pages.

I therefore need buttons to communicate back to thier respect page.as to do thier work…

atm I’m calling the pages via

 
var tempPage:Page = new Page(mc, i, 15, 155*i+100);

however unless I’m wrong I have to increment the tempPage variable so I can access the correct page.as

right? how do I do this?

thanks