XML & Flash photo gallery -quick question!

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

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

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

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?