# XML & Flash photo gallery -quick question!

**URL:** <https://forum.kirupa.com/t/xml-flash-photo-gallery-quick-question/183586>\
**Category:** flash\
**Created:** [March 28, 2006, 4:32pm UTC](https://forum.kirupa.com/t/xml-flash-photo-gallery-quick-question/183586 "2006-03-28T16:32:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![e\_k](https://avatars.discourse-cdn.com/v4/letter/e/dfb087/32.png) [@e\_k](https://forum.kirupa.com/u/e_k)\
**Post date:** [March 28, 2006, 4:32pm UTC](https://forum.kirupa.com/t/xml-flash-photo-gallery-quick-question/183586/1 "2006-03-28T16:32:54Z")

</div>

Hello Guys!!

Just a very quick questions and request for help…

Regrading the XML & Flash photogallery on this website… is there an another way of declaring the functions for next and previous image??

the tutorial works fine, but i was just wondering if there is any other way of doing this…

can some one suggest alternative ways…

here is the code for the functions from the tutorial:

function nextImage() {  
if (p\<(total-1)) {  
p++;  
if (loaded == filesize) {  
picture.\_alpha = 0;  
picture.loadMovie(image[p], 1);  
desc\_txt.text = description[p];  
picture\_num();

function prevImage() {  
if (p\>0) {  
p–;  
picture.\_alpha = 0;  
picture.loadMovie(image[p], 1);  
desc\_txt.text = description[p];  
picture\_num();

Many Thanks.

E

---

<div class="post-metadata">

**Author:** ![B\_L\_U\_E](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@B\_L\_U\_E](https://forum.kirupa.com/u/B_L_U_E)\
**Post date:** [March 28, 2006, 5:10pm UTC](https://forum.kirupa.com/t/xml-flash-photo-gallery-quick-question/183586/2 "2006-03-28T17:10:22Z")

</div>

There are probably many ways of doing it. What is not working for you?

---

<div class="post-metadata">

**Author:** ![e\_k](https://avatars.discourse-cdn.com/v4/letter/e/dfb087/32.png) [@e\_k](https://forum.kirupa.com/u/e_k)\
**Post date:** [March 28, 2006, 5:29pm UTC](https://forum.kirupa.com/t/xml-flash-photo-gallery-quick-question/183586/3 "2006-03-28T17:29:57Z")

</div>

everything is working…

i just want to know other alternatives ways so that i can understand how this works…

using this tutorial simply without understanding seems like i am just copying…

so can anyone help? please

E

---

<div class="post-metadata">

**Author:** ![Thinker2501](https://avatars.discourse-cdn.com/v4/letter/t/e0b2c6/32.png) [@Thinker2501](https://forum.kirupa.com/u/Thinker2501)\
**Post date:** [March 28, 2006, 6:00pm UTC](https://forum.kirupa.com/t/xml-flash-photo-gallery-quick-question/183586/4 "2006-03-28T18:00:24Z")

</div>

Your question is rather vague. There are dozens of ways to solve any programming problem. What is it specifically you want to understand or do?
