# Xml flash photogallery help

**URL:** <https://forum.kirupa.com/t/xml-flash-photogallery-help/217436>\
**Category:** Uncategorized\
**Created:** [February 26, 2007, 11:02pm UTC](https://forum.kirupa.com/t/xml-flash-photogallery-help/217436 "2007-02-26T23:02:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maciejsochacki](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@maciejsochacki](https://forum.kirupa.com/u/maciejsochacki)\
**Post date:** [February 26, 2007, 11:02pm UTC](https://forum.kirupa.com/t/xml-flash-photogallery-help/217436/1 "2007-02-26T23:02:33Z")

</div>

I created a gallery following this tutorial  
[http://www.kirupa.com/developer/mx2004/xml\_flash\_photogallery.htm](http://www.kirupa.com/developer/mx2004/xml_flash_photogallery.htm)  
And I am proud of myself because I am a begginer 🙂  
I won’t to add two buttons to this gallery one that will go to the last picture of gallery and another that will take me to the first one.  
And I just don’t know how to make it 🙂  
I gues my quetion is how to modify that code , so the button won’t go to previous image but it will take my to the last one

[FONT=Arial][SIZE=2]previous\_btn.onRelease = function() { prevImage();};  
[/SIZE][/FONT]
