# Photo Gallery Tutorial Modification (searched)

**URL:** https://forum.kirupa.com/t/photo-gallery-tutorial-modification-searched/148701
**Category:** flash
**Created:** [May 22, 2005, 7:21pm UTC](https://forum.kirupa.com/t/photo-gallery-tutorial-modification-searched/148701 "2005-05-22T19:21:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![6bit](https://avatars.discourse-cdn.com/v4/letter/6/c68b51/32.png) [@6bit](https://forum.kirupa.com/u/6bit)
#### Post date: [May 22, 2005, 7:21pm UTC](https://forum.kirupa.com/t/photo-gallery-tutorial-modification-searched/148701/1 "2005-05-22T19:21:09Z")

</div>

I’m trying to convert the PhotoGallery tutorial over to my main timeline, and modify the script to load the external .swfs.

I have all the external .swf files set up, and they are in working order as is (I have them loading using a code reading) :  
[AS]  
on (release) {  
\_root.contents.loadMovie(“Rentals.swf”);  
}  
[/AS]

However- I want to use the Array’s in the Photo Gallery Tutorial. The way the tut is set up- you use a back and a forward button, which Adds, or Subtracts 1 from a formula it has created- How would I script a button to go to a specific item in the array?

Would that item have to be identified by its placement number? Or could I reference the file name?

Any help would be lovely! Thanks in advance
