# Photo template in flash 3

**URL:** <https://forum.kirupa.com/t/photo-template-in-flash-3/316867>\
**Category:** flash\
**Created:** [December 4, 2010, 6:47pm UTC](https://forum.kirupa.com/t/photo-template-in-flash-3/316867 "2010-12-04T18:47:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flaflasa](https://avatars.discourse-cdn.com/v4/letter/f/50afbb/32.png) [@flaflasa](https://forum.kirupa.com/u/flaflasa)\
**Post date:** [December 4, 2010, 6:47pm UTC](https://forum.kirupa.com/t/photo-template-in-flash-3/316867/1 "2010-12-04T18:47:40Z")

</div>

Hey! this is the actionscript of a photo template that i found in Flash 3. The problem is that I’ve tried to copy the frames to another flash file and now it doesn;t work propeply. These are the errors: 1023: Incompatible override. 1021: Duplicate function definition. I’m a beginner and dont know how to fix it…how shall i do it???

function updateFrame (inc) {  
// send slides to new frame  
newFrame = \_root.\_currentFrame + inc;  
\_root.gotoAndStop(newFrame);  
updateStatus();  
if (\_root.\_currentFrame == 1) {  
prevBtn.gotoAndStop(2);  
} else {  
prevBtn.gotoAndStop(1);  
}  
if (\_root.\_currentFrame == \_root.\_totalFrames) {  
nextBtn.gotoAndStop(2);  
} else {  
nextBtn.gotoAndStop(1);  
}  
}  
function updateStatus () {  
\_root.statusField = \_root.\_currentFrame + " of " + \_root.\_totalFrames;  
}  
function autoplayInit () {  
startTime = getTimer();  
hideControls();  
updateStatus();  
}  
function autoplay () {  
if (autoplayStatus != 0) {  
// get the current time and elapsed time  
curTime = getTimer();  
elapsedTime = curTime-startTime;  
// 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) {  
\_root.gotoAndStop(1);  
} else {  
\_root.nextFrame();  
}  
autoplayInit();  
}  
}  
}  
function hideControls () {  
nextBtn.gotoAndStop(2);  
prevBtn.gotoAndStop(2);  
}  
updateFrame();  
autoplayStatus = 0;
