Moving to the previous or next image in an array

hey people,

hows things, this is my first post on kirupa. Which i have found to be a great source of information regarding AS3 flash and so much more.

i need HELP!

I’ve set up an array which contains images fro a folder. when you click the thumbnail a larger version of the image with the name appears. I want to be able to click the previous or next button and move through the array eg;

var imgArray:Array = new Array (img1, img2, img3, img4)

if img3 is displayed and you press the previous button it loads img2 same with the next button

and i bet your thinking whatta newbie :crazy: