# \[Flash8 AS2\] issue with the slideshow template

**URL:** <https://forum.kirupa.com/t/flash8-as2-issue-with-the-slideshow-template/281786>\
**Category:** flash\
**Created:** [February 13, 2009, 6:26am UTC](https://forum.kirupa.com/t/flash8-as2-issue-with-the-slideshow-template/281786 "2009-02-13T06:26:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![deshetty](https://avatars.discourse-cdn.com/v4/letter/d/e19adc/32.png) [@deshetty](https://forum.kirupa.com/u/deshetty)\
**Post date:** [February 13, 2009, 6:26am UTC](https://forum.kirupa.com/t/flash8-as2-issue-with-the-slideshow-template/281786/1 "2009-02-13T06:26:00Z")

</div>

Hello, Im working on slideshow template that comes with Adobe Flash.

on Auto play mode i want to set different time delay between the slides.  
could anyone let me know what modification need to be done in the script

function autoplay () {  
if (autoplayStatus != 0) {  
// get the current time and elapsed time  
curTime = getTimer();  
elapsedTime = curTime-startTime;  
currFrame = \_root.\_currentFrame;

// update timer indicator  
indicatorFrame = int(4/(delay/(elapsedTime/1000)));  
indicator.gotoAndStop(indicatorFrame+1);

// if delay time if met, goto next photo  
if (elapsedTime \>= (delay\*1000)) {  
if (\_root.\_currentframe == \_root.\_totalframes) {  
stop();  
//\_root.gotoAndStop(1);  
} else {  
\_root.nextFrame();  
}  
autoplayInit();  
}}}
