Hi, there i found a nice fade in and out image gallery, i wanted to update it with two things, 1 is to add arrows for next and previous what i have done but it disturbing slideshow thats why i stoped it, other is to add a thumb panel at the bottom, thats too long, so i want to show only 16 thumbs per screen, infact that thumb mc as an externel swf file my goal is to slied the thumb mc out for each 16 thumb the next 16 thumbs , then again then so on,there are 11 screen ,okay, there is the main movie of image gallery that contains a mc named meneloader and the thumbs panel loading into “meneloader” with 2 left right buttons, when a user click next image button for 16 times then the mc on external move will move 600 y cords to show more 16 thumbs, so after clicking 32 images the thumbs mc will slide more 600 y cords,
well whats my problem is, as am not a programmer doing something wrong because of my lake of knolodge about if statement,’
looks this code so you will understand whats could be happen with me, and what should i do to get rid of this problem, thanks
function nextImage() {
{
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
//slideshow();
}
if (_root.p>=16)
{
_root.meneloader.moveMe(1915);
_root.meneloader.aroL.gotoAndStop(2);
_root.meneloader.pagenum.text= "2/11";
}
if (p>=32)
{
_root.meneloader.moveMe(1315);
_root.meneloader.aroL.gotoAndStop(3);
_root.meneloader.pagenum.text= "3/11";
}
if (p>=48 )
{
_root.meneloader.moveMe(710);
_root.meneloader.aroL.gotoAndStop(4);
_root.meneloader.pagenum.text= "4/11";
}
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
if (p<=16)
{
_root.meneloader.moveMe(2520);
_root.meneloader.aroR.gotoAndStop(1);
_root.meneloader.pagenum.text= "1/11";
}
if (p<=32)
{
_root.meneloader.moveMe(1915);
_root.meneloader.aroR.gotoAndStop(2)
_root.meneloader.pagenum.text= "2/11";
}
if (p<=48)
{
_root.meneloader.moveMe(1315);
_root.meneloader.aroR.gotoAndStop(3);
_root.meneloader.pagenum.text= "3/11"
}
}
}
its because i am using many if conditions and 17 to
best regards, shujaat