Actionscript controlled slideshow

I am trying to modify the Actionscript in from the photo slideshow tutorial
[SIZE=4][COLOR=#003366]Create[/COLOR][/SIZE][FONT=Verdana][SIZE=4][COLOR=#003366] a Photo Gallery
[/COLOR][/SIZE][/FONT][FONT=Arial][SIZE=1][COLOR=#808080]code by sbeener :: tutorial by kirupa chinnathambi[/COLOR][/SIZE][/FONT]
I am trying to make the photos advance automatically without having to use the buttons like this

frameDelay = 24;
frameCount = frameDelay;
if (frameCount == frameDelay)
_root.changePhoto(1);
if (frameCount == frameDelay);
frameCount = 0;

This only seems to advance the photo once. Any and all help would be greatly appreciated

Hmm I tried that tute and the images don’t load center of the movie clip . . . this is an odd one
gp