PDA

View Full Version : Next image


itaym
04-04-2010, 11:00 AM
I bought a xml flash gallery and the problem is the way of "next image" (last image) is not good for me.
When you click on next image, the gallery scroll back fast to the first image.
The option I want to make it, is just to make it like you move to next image.

Here is the script (I think this is it ....)


//--------- NEXT IMAGE ---------
//===============================

right_mc.onRelease = function() {
if (currentImage>=0 && currentImage<numOfImages-1) {
currentImage = currentImage+1;
imgMover(-positions[currentImage]);
} else {
currentImage = 0;
imgMover(-positions[currentImage]);
}
play_pause_mc.timeCounter = 0;
};


//--------- PREVIOUS IMAGE ---------
//==================================

left_mc.onRelease = function() {
if (currentImage<=0 || currentImage>=numOfImages) {
currentImage = numOfImages-1;
imgMover(-positions[currentImage]);
} else {
currentImage = currentImage-1;
imgMover(-positions[currentImage]);
}
play_pause_mc.timeCounter = 0;
};

itaym
04-06-2010, 07:46 AM
Maybe link (http://www.pablodesigns.net/en/events/events-wedding-havat-ronit) will help ...