# Select specific image in photo gallery

**URL:** <https://forum.kirupa.com/t/select-specific-image-in-photo-gallery/58395>\
**Category:** Uncategorized\
**Created:** [July 22, 2004, 1:52am UTC](https://forum.kirupa.com/t/select-specific-image-in-photo-gallery/58395 "2004-07-22T01:52:53Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![sticmann](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@sticmann](https://forum.kirupa.com/u/sticmann)\
**Post date:** [July 22, 2004, 1:52am UTC](https://forum.kirupa.com/t/select-specific-image-in-photo-gallery/58395/1 "2004-07-22T01:52:53Z")

</div>

How can I change the sbeener photo gallery (or any other) to jump to a specific image? I will have a separate button for each image in the gallery. I know very little about actionScript. Any help would be greatly appreciated.

Thanks,  
Joshua

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 23, 2004, 1:58am UTC](https://forum.kirupa.com/t/select-specific-image-in-photo-gallery/58395/2 "2004-07-23T01:58:02Z")

</div>

I figured out how to make the picture change to the specific one that I want. Now I have a related question.  
When any one of the images is displayed, I want to be able to click on that image and be taken to a different URL. Each image in the gallery will have it’s own associated URL.  
Can anyone help?  
Thanks  
-Joshua

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 23, 2004, 6:53am UTC](https://forum.kirupa.com/t/select-specific-image-in-photo-gallery/58395/3 "2004-07-23T06:53:47Z")

</div>

Depends how your setup is…  
You can make another array wit the url’s in it (eg urlArray)

```auto
photo.onRelease = function(){
getURL(urlArray[pIndex]);
}

```

Probably won’t work, but to give you an idea.  
Else post your fla?

scotty(-:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 23, 2004, 3:23pm UTC](https://forum.kirupa.com/t/select-specific-image-in-photo-gallery/58395/4 "2004-07-23T15:23:37Z")

</div>

Thanks Scotty

I used a global variable for the URL and changed it with each button. I guess I just needed to sleep on it.

-Joshua

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 24, 2004, 8:44pm UTC](https://forum.kirupa.com/t/select-specific-image-in-photo-gallery/58395/5 "2004-07-24T20:44:36Z")

</div>

I have another question about the photo gallery. I have my gallery set up similarly to the sbeener gallery with a placeholder that shows the images, along with other text and buttons. Now I want to use this gallery in its own swf loaded into my main swf (as in the kirupa total site tutorial). When I click the link to bring up the gallery, only the placeholder shows up. no other text or buttons. (It looks like the placeholder is being used as some sort of trim area.)  
Any ideas?  
-Joshua

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 24, 2004, 9:25pm UTC](https://forum.kirupa.com/t/select-specific-image-in-photo-gallery/58395/6 "2004-07-24T21:25:10Z")

</div>

you mean when you click a button the gallery.swf will be loaded into your main movie?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 24, 2004, 9:37pm UTC](https://forum.kirupa.com/t/select-specific-image-in-photo-gallery/58395/7 "2004-07-24T21:37:06Z")

</div>

Yes. My main movie is set up just like the kirupa tutorial. When the gallery link is clicked, the gallery swf should load into a blank movie on the main page. My other links work the correct way.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 24, 2004, 9:57pm UTC](https://forum.kirupa.com/t/select-specific-image-in-photo-gallery/58395/8 "2004-07-24T21:57:43Z")

</div>

i think the right code therefore is:

```auto

on(release){
  loadMovie("/path/gallery.swf", "placeholdermc");
}

```

or isnt that what you meant?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 24, 2004, 10:39pm UTC](https://forum.kirupa.com/t/select-specific-image-in-photo-gallery/58395/9 "2004-07-24T22:39:15Z")

</div>

how do you post code in its own box?

I have this for my button:

on (release){  
content.loadMovie(“gallery.swf”);  
}

and this works fine for my other links (home, contact…) and it also worked fine for my gallery until I added this sbeener-style photo gallery.

-Joshua

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 24, 2004, 10:49pm UTC](https://forum.kirupa.com/t/select-specific-image-in-photo-gallery/58395/10 "2004-07-24T22:49:22Z")

</div>

is it possible to post the .fla('s)? makes it a lot easier.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2004, 8:00am UTC](https://forum.kirupa.com/t/select-specific-image-in-photo-gallery/58395/11 "2004-07-25T08:00:40Z")

</div>

In Sbeener’s code replace all “\_root” for “this” 😉

scotty(-:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 26, 2004, 2:17am UTC](https://forum.kirupa.com/t/select-specific-image-in-photo-gallery/58395/12 "2004-07-26T02:17:43Z")

</div>

Scotty,  
That was exactly it. Thank you guys so much.  
My site is  
[sticmann.com](http://sticmann.com) if you want to check it out.

Thanks,  
-Joshua

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 26, 2004, 6:39am UTC](https://forum.kirupa.com/t/select-specific-image-in-photo-gallery/58395/13 "2004-07-26T06:39:47Z")

</div>

no problem=)  
Nice site, one question though, the font in the gallery-description text, is it meant to be Times (I think)?

scotty(-:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 26, 2004, 10:16pm UTC](https://forum.kirupa.com/t/select-specific-image-in-photo-gallery/58395/14 "2004-07-26T22:16:47Z")

</div>

Thanks. No, the font is called “American Typewriter”. Why do you ask?

-Joshua

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 27, 2004, 12:22am UTC](https://forum.kirupa.com/t/select-specific-image-in-photo-gallery/58395/15 "2004-07-27T00:22:59Z")

</div>

some sort of loader would make that site less static i think, I just dont like sitting there and no visuals while loading.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 27, 2004, 7:12am UTC](https://forum.kirupa.com/t/select-specific-image-in-photo-gallery/58395/16 "2004-07-27T07:12:16Z")

</div>

Just wondering:)  
I guess it was my paranoia for unembedded fonts:lol:

scotty(-:
