Xml gallery assistance?

I am following the Kirupa XML gallery tutorial and trying to make amends as I grasp everything. Instead of using next and previous, I want to use the numbers that correspond with the images as buttons. I am doing the obvious (I think) and it is not working. Can some XML/Flash guru assist me? PLEASE?