How to make a continuous slideshow?

Ok guys, I want to make a slideshow that when you hold down the next button, it keeps cycling through the images, I tried a for loop but that went to fast, I am pretty new at this so any help is appreciated

here is a crude sample

http://www.pcgamemods.com/slideshow.html
when yo uclick the button it cycles through, but you have to keep pressing for it to change, I just want the user to be able to hold it down

if you want a better understanding of what I am trying to do go to alienware’s new case flash intro

http://www.alienware.com/flash_pages/predator_demo_start.html

if you go through the long intro and click the “click to see 3d model” that is essentially what I am trying to do, only instead of hovering your mouse over the image I want the user to just click the next button

also, is there anyway to allow the images to preload?

the script is going to be dynamic with a database and when the user holds down the button I it would be best if he didn’t have to wait for the images to load

whew that was a mouth loud
:crazy:

hope you guys can help out :tie:

i’ve seen that effect on the www.yulia-nau website as well… i’m wondering if it can’t be accomplished in a similar manner as the infinity menu…

a job i was working on a while back required a menu scolling forever, but only when the mouse was in the certain area… maybe the source code can help you…

markcq :alien:

well there’s a problem with the infinite loop. I can’t show the other images just sliding in, the new images need to go on top of the older ones to create the effect

what I really need is some sort of pause function where it could go into a loop, and in the loop pause for about a 1/2 second before switching to the next image

Alright I got it, I am using setInterval() to switch between images

you could create a MC containing the entire loop…

put stop(); action on frame one

put the following script on the MC:

onClipEvent (load) {
mouse = this._xmouse;
mouseDrag = this._xmouse;
dragging = false;
movieWidth = this._width;
movieCenter = 0;
noOfFrames = this._totalFrames;
currentFrame = this._currentFrame;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
frameToGoto = currentFrame-Math.round(((mouseDrag-mouse)/10));
if (hitTest(_root._xmouse, _root._ymouse, false)) {
mouseDrag = this._xmouse;
if (dragging) {
if (frameToGoto>=1 && frameToGoto<=noOfFrames) {
this.gotoAndStop(frameToGoto);
}
if (frameToGoto<1) {
frameToGoto += noOfFrames;
this.gotoAndStop(frameToGoto);
}
if (frameToGoto>noOfFrames) {
frameToGoto -= noOfFrames;
this.gotoAndStop(frameToGoto);
}
}
}
}
onClipEvent (mouseDown) {
mouse = this._xmouse;
if (hitTest(_root._xmouse, _root._ymouse, false)) {
dragging = true;
}
}
onClipEvent (mouseUp) {
dragging = false;
currentFrame = this._currentFrame;
}

:alien: