# Slideshow funktion in Scottys Gallery - How?

**URL:** https://forum.kirupa.com/t/slideshow-funktion-in-scottys-gallery-how/163282
**Category:** flash
**Created:** [September 21, 2005, 10:17am UTC](https://forum.kirupa.com/t/slideshow-funktion-in-scottys-gallery-how/163282 "2005-09-21T10:17:42Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![motionsync](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/motionsync/32/781_2.png) [@motionsync](https://forum.kirupa.com/u/motionsync)
#### Post date: [September 21, 2005, 10:17am UTC](https://forum.kirupa.com/t/slideshow-funktion-in-scottys-gallery-how/163282/1 "2005-09-21T10:17:42Z")

</div>

Hi

I am trying to fintune my webpage [www.apneaimages.com](http://www.apneaimages.com) under PHOTOGRAPHY and i like to have 2 funktions

1. Slideshow button. I like that the slideshow continoue from the actual picture and not start from the beggining. them I like to have a endless loop

2. To show the pictures I use nummeric buttons and a prev & next button.  
Now, when I push the nummeric buttons they change colors and saty blue, so that the viewer know wich Picture he have see.  
But this funktion is not working when I use the Next & Prev buttons.  
Is there any chance to fix this?

Her some code:

Prev & next Button

```auto
stop();
gallery_xml.load("apnea.xml");
prevb.onRelease = function() {
 if (cur == 0) {
  containerMC.loadPic(pArray.length-1);
 } else {
  containerMC.loadPic(cur-1);
 }
};
nextb.onRelease = function() {
 clearInterval(interval);
 if (cur == pArray.length-1) {
  containerMC.loadPic(0);
  } else {
  containerMC.loadPic(cur+1);
 
 }
};

```

Nummeric Button (button number 01)

```auto
 
on (rollOver) {
 this.gotoAndStop("over");
}
on (rollOut) {
  this.gotoAndStop("up");
 }
on (release) {
 this.gotoAndStop("down");
 _root.containerMC.loadPic(1);
}

```

Thanks Lambis
