# Xml gallery "go to specific image"

**URL:** <https://forum.kirupa.com/t/xml-gallery-go-to-specific-image/166184>\
**Category:** Uncategorized\
**Created:** [October 17, 2005, 10:13pm UTC](https://forum.kirupa.com/t/xml-gallery-go-to-specific-image/166184 "2005-10-17T22:13:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Debbie\_H](https://avatars.discourse-cdn.com/v4/letter/d/278dde/32.png) [@Debbie\_H](https://forum.kirupa.com/u/Debbie_H)\
**Post date:** [October 17, 2005, 10:13pm UTC](https://forum.kirupa.com/t/xml-gallery-go-to-specific-image/166184/1 "2005-10-17T22:13:31Z")

</div>

Hi,

I’ve added the following code to make the gallery move to a specific image when the button “test” is pressed. It works for the captions but not the image. Would anybody know what I’m missing? Thanks.

```auto

};
	test.onRelease = function() {
		showImage();
	};

};
function showImage() {
	var p = 3;
    picture._visible = 1;
	picture._alpha = 0;
	picture.onEnterFrame = fadeIn; 
	desc_txt.text = description[p];
	comment_txt.text = comment[p];
	caption_txt.text = caption[p];
	comment_txt.autoSize = true;
	picture_num();

```
