# Kirupa XML Photogallery question

**URL:** <https://forum.kirupa.com/t/kirupa-xml-photogallery-question/249056>\
**Category:** flash\
**Created:** [January 14, 2008, 10:53pm UTC](https://forum.kirupa.com/t/kirupa-xml-photogallery-question/249056 "2008-01-14T22:53:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![max999](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@max999](https://forum.kirupa.com/u/max999)\
**Post date:** [January 14, 2008, 10:53pm UTC](https://forum.kirupa.com/t/kirupa-xml-photogallery-question/249056/1 "2008-01-14T22:53:06Z")

</div>

Does anybody knows how to make the next and prev button in the Kirupa XML photogallery code disappear(prev) when the first image is loaded and (next) when the last one is loaded and then be both visible when there’s an image before and after?This is the link:  
[http://www.kirupa.com/developer/mx2004/xml\_flash\_photogallery.htm](http://www.kirupa.com/developer/mx2004/xml_flash_photogallery.htm)  
Thanks a lot  
Massimo
