# XML and/or Actionscript

**URL:** <https://forum.kirupa.com/t/xml-and-or-actionscript/247643>\
**Category:** flash\
**Created:** [December 27, 2007, 7:10pm UTC](https://forum.kirupa.com/t/xml-and-or-actionscript/247643 "2007-12-27T19:10:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dietergalea](https://avatars.discourse-cdn.com/v4/letter/d/dfb087/32.png) [@dietergalea](https://forum.kirupa.com/u/dietergalea)\
**Post date:** [December 27, 2007, 7:10pm UTC](https://forum.kirupa.com/t/xml-and-or-actionscript/247643/1 "2007-12-27T19:10:40Z")

</div>

i’m creating a photo gallery which has 10 photos viewed through XML. I’ve got next and previous buttons aswell. How can I do to detect if its on the 10th photo the next button disappears and if its viewing the first button the previous button disappears? help pls help! 10x
