# Forward and Back Btns w/ Dynamic Imgs

**URL:** <https://forum.kirupa.com/t/forward-and-back-btns-w-dynamic-imgs/218730>\
**Category:** flash\
**Created:** [March 10, 2007, 4:33am UTC](https://forum.kirupa.com/t/forward-and-back-btns-w-dynamic-imgs/218730 "2007-03-10T04:33:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![megamichan](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@megamichan](https://forum.kirupa.com/u/megamichan)\
**Post date:** [March 10, 2007, 4:33am UTC](https://forum.kirupa.com/t/forward-and-back-btns-w-dynamic-imgs/218730/1 "2007-03-10T04:33:29Z")

</div>

I’m wondering if this is possible to do, because I’ve tried all that I could think of, but it wouldn’t work…

I have a gallery in which I am dynamically loading the images into the Flash Loader component. I would like to have forward and back buttons that recognize which image is currently in the loader, and to go to the next or previous image. I have the images named sequentially (img001, img002, and so on).

I can’t figure out how to script it, and I’m sure that there’s a way to do it.

Any help is appreciated,  
~Sam
