# Photo Gallery Using XML and Flash

**URL:** <https://forum.kirupa.com/t/photo-gallery-using-xml-and-flash/237934>\
**Category:** Uncategorized\
**Created:** [September 5, 2007, 4:49pm UTC](https://forum.kirupa.com/t/photo-gallery-using-xml-and-flash/237934 "2007-09-05T16:49:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hotlogos](https://avatars.discourse-cdn.com/v4/letter/h/b9bd4f/32.png) [@hotlogos](https://forum.kirupa.com/u/hotlogos)\
**Post date:** [September 5, 2007, 4:49pm UTC](https://forum.kirupa.com/t/photo-gallery-using-xml-and-flash/237934/1 "2007-09-05T16:49:34Z")

</div>

I think this is a great XML / Flash photo gallery, but I want to add another feature to it. I like that you can scoll through the photos with the next or previous button and / or use the arrow keys. However, I want the photos to rotate or scroll automatically based on a certain amount of timing passing. I have added the following code and can not get it to work. Has anyone done this or can anyone tell what I am doing wrong with the code?

time = getTimer();  
delay = 6500;

if (Number(getTimer()) \> Number(time) + delay){  
nextImage();  
} else if (Number(getTimer()) \< Number(time) + delay){  
prevImage();  
}
