Hey Nick,
For the pulling the pics from the server part, just have the
XML reside on the server along with the images and point your flash
app to
http://servername/mypics.xml
The XML can contain relative links to the pictures
<myxml>
<pic>
<location>/images/mypic.jpg</location>
<description>fancy house</description>
<etc...></...etc>
</pic>
</myxml>
As for the determining how many pages of pics you have,
once you load the XML into and XMLList object (you've done
this before), you can search through, get the number of pics, etc.
So you'll have to build your app like:
var pageCount = 1;
for(var i=0;i<myXML.pic.length;i++){
if(i%6==0){
pageCount++;
}
}
Hope that helps!
Cheers,
FlashTastic